class_mcPDOLogger.inc.php
751 Bytes
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of class_mcPDOLogger
*
* @author Frederick <frederick at mensch.coop>
*/
class mcPDOLogger {
private static $Messages = array();
public static function add($param_order, array $param_bindValueArray=null, $param_optional='') {
mcPDOLogger::$Messages[] = array(
'order' => $param_order,
'bindValue' => $param_bindValueArray,
'optional' => $param_optional
);
}
public static function getMessagesAsText() {
$MessageAsText = '';
foreach(mcPDOLogger::$Messages as $message) {
$MessageAsText .= "\n".$message['order']."\n";
}
mcPDOLogger::$Messages = array();
return $MessageAsText;
}
}
?>