ftp_base::PushError()publicWP 1.0

<!-- --------------------------------------------------------------------------------------- --> <!-- Partie : gestion des erreurs --> <!-- --------------------------------------------------------------------------------------- --> Gnre une erreur pour traitement externe la classe

Method of the class: ftp_base{}

No Hooks.

Return

null. Nothing (null).

Usage

$ftp_base = new ftp_base();
$ftp_base->PushError( $fctname, $msg, $desc );
$fctname (required)
-
$msg (required)
-
$desc **
-
Default: false

ftp_base::PushError() code WP 6.5.2

function PushError($fctname,$msg,$desc=false){
	$error=array();
	$error['time']=time();
	$error['fctname']=$fctname;
	$error['msg']=$msg;
	$error['desc']=$desc;
	if($desc) $tmp=' ('.$desc.')'; else $tmp='';
	$this->SendMSG($fctname.': '.$msg.$tmp);
	return(array_push($this->_error_array,$error));
}