本文整理汇总了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) {