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