本文整理汇总了PHP中Logging::addEntry方法的典型用法代码示例。如果您正苦于以下问题:PHP Logging::addEntry方法的具体用法?PHP Logging::addEntry怎么用?PHP Logging::addEntry使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Logging
的用法示例。
在下文中一共展示了Logging::addEntry方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: registerStatus
protected function registerStatus($p)
{
// test: http://dev.efiction.org/mvc/register/status=moderation,91bc4ea33e07bf9a05d60b7c9d968115
$parameter = $this->parametric($p);
list($reason, $hash) = $parameter['status'];
$check = $this->model->exec("SELECT U.uid, U.login, U.groups, U.resettoken, U.about as reason FROM `tbl_users`U WHERE MD5(CONCAT(U.uid,U.registered)) = '{$hash}';")[0];
if ($reason == "done" and $check['groups'] > 0) {
$this->buffer("** Reg done **");
} elseif ($reason == "email" and $check['resettoken'] > "") {
$this->buffer("** Reg email **");
} elseif ($reason == "moderation" and $check['reason'] > "") {
$this->buffer("** Reg moderation **");
} else {
$this->buffer("** Reg unknown **");
// Trigger an admin note
}
\Logging::addEntry("RG", "Reg user", $check['uid']);
/*$log->reset();
$log->log_type='AM';
$log->save();*/
//$this->buffer(print_r($check,1));
}