本文整理汇总了PHP中Notifications::send_later方法的典型用法代码示例。如果您正苦于以下问题:PHP Notifications::send_later方法的具体用法?PHP Notifications::send_later怎么用?PHP Notifications::send_later使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Notifications
的用法示例。
在下文中一共展示了Notifications::send_later方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: send
/**
* Just decides whether or not to send in background
* @param mixed $to string or array...the type of address (email, task ID, user ID) is specified below
* @param integer $to_type type of $to address
* @param integer $type type of notification
* @param array $data additional info needed for notification
* @access public
* @return bool
*/
function send($to, $to_type, $type, $data = array())
{
global $fs;
$proj = new Project(0);
$data['project'] = $proj;
$data['notify_type'] = $type;
if ($fs->prefs['send_background'] && $to_type != ADDRESS_EMAIL) {
return Notifications::send_later($to, $to_type, $type, $data);
} else {
return Notifications::send_now($to, $to_type, $type, $data);
}
}