本文整理汇总了PHP中notification::getNotifications方法的典型用法代码示例。如果您正苦于以下问题:PHP notification::getNotifications方法的具体用法?PHP notification::getNotifications怎么用?PHP notification::getNotifications使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类notification
的用法示例。
在下文中一共展示了notification::getNotifications方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sendReport
/**
* @param string $query
* @return object of mysqli query pointer
* @throws Exception
*/
public function sendReport($exc)
{
$msg = "<div style='direction:ltr;'>Error No: " . $exc->getCode() . " - " . $exc->getMessage() . "<br >" . nl2br($exc->getTraceAsString()) . '</div>';
exit('<!-- ' . $msg . ' -->');
if (!class_exists('notification')) {
$notfile = dirname(__FILE__) . '/notification.php';
if (file_exists($notfile)) {
include $notfile;
} else {
exit('<!-- ' . $msg . ' -->');
}
}
$subject = "database error #" . $exc->getCode();
$userinfo = array('email' => "hi@simple-sol.com", 'nickname' => "system tech team");
notification::getNotifications()->sendMail($subject, $userinfo, 'blank', $msg);
}
示例2: notification
$number = $dt->s;
$unit = "second";
}
}
}
}
}
}
$unit .= $number > 1 ? "s" : "";
$ret = $number . " " . $unit . " " . "ago";
return $ret;
}
if (isset($_REQUEST['user_id'])) {
$user_id = $_REQUEST['user_id'];
$objNotification = new notification();
$dbRows_Notifications = $objNotification->getNotifications($user_id);
if (!isset($dbRows_Notifications)) {
echo '<li><a href="#">No new notifications</a></li>';
}
$ncount = 0;
while (isset($dbRows_Notifications) && ($dbRow = mysqli_fetch_array($dbRows_Notifications))) {
$ncount = $ncount + 1;
if ($ncount > 1) {
echo '<li class="divider"></li>';
}
?>
<li><a href="#">
<div class="row">