本文整理匯總了PHP中Worker::selectStation方法的典型用法代碼示例。如果您正苦於以下問題:PHP Worker::selectStation方法的具體用法?PHP Worker::selectStation怎麽用?PHP Worker::selectStation使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Worker
的用法示例。
在下文中一共展示了Worker::selectStation方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
// reindex
$originWorkerListFlag = TRUE;
} else {
$workerList = array();
$workerList[0] = $worker;
// currentworker
$originWorkerFlag = TRUE;
}
} else {
// done this way as PARAM_LIST may be reused
$workerList = Worker::selectExpo($expo->expoid);
$originExpoFlag = TRUE;
}
} else {
// done this way as PARAM_LIST may be reused
$workerList = Worker::selectStation($station->stationid);
$originStationFlag = TRUE;
}
// this is the organizer get; need to finish with super/crew get
if ($author->isCrewMember()) {
// remove all workers
// remove Organizers if Station
// remove Supervisors if Expo
for ($k = 0; $k < count($workerList); $k--) {
$w = $workerList[$k];
if ($originStationFlag && $w->isSupervisor() || $originExpoFlag && $w->isOrganizer()) {
continue;
}
unset($workerList[$k]);
// remove in all other cases
}
示例2: oddWorkerList
public function oddWorkerList($workerList)
{
$oddWorkerList = Worker::selectStation($this->stationid);
foreach ($workerList as $worker) {
for ($k = 0; $k < count($oddWorkerList); $k++) {
if (!is_null($oddWorkerList[$k]) && $worker->workerid == $oddWorkerList[$k]->workerid) {
$oddWorkerList[$k] = NULL;
break;
// onto next worker
}
}
}
// $worker
return array_values(array_filter($oddWorkerList));
// removes NULL but re-indexes
}