本文整理汇总了PHP中Worker::selectNotStation方法的典型用法代码示例。如果您正苦于以下问题:PHP Worker::selectNotStation方法的具体用法?PHP Worker::selectNotStation怎么用?PHP Worker::selectNotStation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Worker
的用法示例。
在下文中一共展示了Worker::selectNotStation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getExpoCurrent
</head>
<body>
<div id="container">
<?php
$expo = getExpoCurrent();
// must have clicked a button to be 2nd time through
$firstTimeThrough = !(isset($_REQUEST["add"]) || isset($_REQUEST["remove"]) || isset($_REQUEST["save"]));
$job = getStationCurrent();
// note this only works (StationJob not Station) for CIW where station:job == 1:1
if ($firstTimeThrough) {
// now go get the workers
$workerList = Worker::selectStation($job->stationid);
// now go to the non-workers!
$workerOutList = Worker::selectNotStation($expo->expoid, $job->stationid);
$oddWorkerList = array();
// but unfilled
} else {
$workerList = getSelectList();
$oddWorkerList = $job->oddWorkerList($workerList);
// use REQUEST as may be a GET
if (isset($_REQUEST["save"])) {
$assignment = new ShiftAssignment();
// can re-use several times
$assignment->expoid = $expo->expoid;
$assignment->stationid = $job->stationid;
$assignment->jobid = $job->jobid;
foreach ($workerList as $worker) {
// save the new worker list
// logMessage("save", $worker->lastName);