當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Schedule::run方法代碼示例

本文整理匯總了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);
 }
開發者ID:learsu,項目名稱:php-swoole-framework,代碼行數:8,代碼來源:testUdpServ.php

示例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();
開發者ID:ericmller29,項目名稱:NHLER,代碼行數:30,代碼來源:schedule.php

示例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) {
開發者ID:ramant15,項目名稱:ektimo,代碼行數:31,代碼來源:index.php


注:本文中的Schedule::run方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。