本文整理匯總了PHP中Schedule::run方法的典型用法代碼示例。如果您正苦於以下問題:PHP Schedule::run方法的具體用法?PHP Schedule::run怎麽用?PHP Schedule::run使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Schedule
的用法示例。
在下文中一共展示了Schedule::run方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: onReceive
public function onReceive($server, $fd, $fromId, $data)
{
$tttt = new Schedule();
$test = new TestController($server, $fd, array());
$tttt->add($test->test());
$tttt->run();
$this->server->send($fd, $data);
}
示例2: stdClass
if ($class == 'team' || $class == 'date') {
if (!isset($scheduleObj)) {
$scheduleObj['game'] = new stdClass();
}
if ($rowNum % 3 === 1) {
$scheduleObj['game']->homeTeam = $game->nodeValue;
} else {
if ($rowNum % 3 === 2) {
$scheduleObj['game']->awayTeam = $game->nodeValue;
} else {
if ($rowNum % 3 === 0) {
$scheduleObj['game']->date = $game->nodeValue;
}
}
}
$count++;
if ($count % 3 == 0) {
$count = 0;
$schedule[] = $scheduleObj['game'];
$this->database->insertSchedule($scheduleObj['game']);
// feb 27th
$scheduleObj['game'] = new stdClass();
}
$rowNum++;
}
}
}
}
$scraper = new Schedule();
$scraper->run();
示例3: explode
$obj_smarty->assign('cal_can_change_color', (bool) $arr_cal['can_change_color']);
$obj_smarty->assign('cal_alterable_startdate', $arr_cal['alterable_startdate']);
$obj_smarty->assign('cal_alterable_enddate', $arr_cal['alterable_enddate']);
$obj_smarty->assign('cal_can_mail', Calendar::calCanMail($arr_cal));
}
// determine how many intitial show
$arr_default_calendars = explode(',', $str_default_calendars);
if (count($arr_default_calendars) > 1) {
$obj_smarty->assign('cal_can_add', false);
} else {
$obj_smarty->assign('cal_can_add', $arr_permissions['can_add']);
}
//$obj_smarty->display(FULLCAL_DIR.'/view/cal.html');
//exit;
}
Schedule::run();
global $current_languages;
$arr_submit = array(array('sq', 'string', false, ''), array('sd', 'string', false, ''), array('ft', 'string', false, ''), array('cid', 'string', false, ''));
$frm_submitted_initial = validate_var($arr_submit);
if (!empty($frm_submitted_initial['sq'])) {
if (!empty($frm_submitted_initial['sq'])) {
$q = $frm_submitted_initial['sq'];
}
$obj_smarty->assign('sq', $q);
}
if (!empty($frm_submitted_initial['sd']) && !empty($frm_submitted_initial['ft'])) {
$_SESSION['employee-work-schedule-sd'] = $frm_submitted_initial['sd'];
$_SESSION['employee-work-schedule-ft'] = $frm_submitted_initial['ft'];
$arr_goto_date = explode('-', $frm_submitted_initial['sd']);
$month = $arr_goto_date[1] - 1;
if ($month == -1) {