本文整理匯總了PHP中myNotificationMgr::splitMultiNotifications方法的典型用法代碼示例。如果您正苦於以下問題:PHP myNotificationMgr::splitMultiNotifications方法的具體用法?PHP myNotificationMgr::splitMultiNotifications怎麽用?PHP myNotificationMgr::splitMultiNotifications使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類myNotificationMgr
的用法示例。
在下文中一共展示了myNotificationMgr::splitMultiNotifications方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: execute
public function execute()
{
$dummy = $this->getRequestParameter("votes", 0);
$dummy = $dummy % 3;
if ($dummy == 1) {
if (rand(1, 2) == 1) {
$res = "-1";
} else {
$res = "0";
}
} elseif ($dummy == 2) {
$res = "-2";
} else {
$res = "0";
}
$res = "0";
list($not_list, $signature, $debug) = myNotificationMgr::splitMultiNotifications($_REQUEST);
$myFile = "/var/log/notifications_log";
$fh = fopen($myFile, 'a');
fwrite($fh, microtime(true) . ":\n");
fwrite($fh, print_r($_REQUEST, true) . "\n");
fwrite($fh, "- not_list: ---\n");
fwrite($fh, print_r($not_list, true) . "\n");
//fwrite($fh, print_r ( $debug , true ) . "\n" );
fwrite($fh, $signature . "\n");
fwrite($fh, "---------------------------------------\n");
fclose($fh);
return $this->renderText($res);
}