WordPress at Your Fingertips
function is not described

ftp_base::PushError() public WP 1.0

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

{} It's a method of the class: ftp_base{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of ftp_base::PushError() WP 5.8.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));
}