2010-moteur-site-simple/cms2/code/debug.php
Georges Dupéron 93c5b602c9 Des trucs.
2010-10-04 23:36:41 +02:00

22 lines
354 B
PHP

<?php
class Debug {
public static $errors = array();
public static function niy($msg) {
array_push(self::$errors, "Not implemented yet : $msg");
}
public static function afficher() {
echo "<pre>";
echo "Erreurs:\n";
foreach (self::$errors as $e) {
echo $e . "\n";
}
echo "</pre>";
}
}
function niy($name) {
Debug::niy($name);
}
?>