本文整理匯總了PHP中Tasks::listQueues方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tasks::listQueues方法的具體用法?PHP Tasks::listQueues怎麽用?PHP Tasks::listQueues使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tasks
的用法示例。
在下文中一共展示了Tasks::listQueues方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Tasks
}
}
} else {
if (!empty($_REQUEST['content_id'])) {
$gTask = new Tasks(null, $_REQUEST['content_id']);
$gTask->load();
$gBitUser->storePreference('task_process', $_REQUEST['content_id']);
$userstate = $_REQUEST['content_id'];
} else {
$gTask = new Tasks();
}
}
if ($gTask->isValid() and $userstate != 0) {
$gBitSmarty->assignByRef('userstate', $userstate);
$gBitSmarty->assignByRef('taskInfo', $gTask->mInfo);
$dept_tree = $gTask->listQueues();
$gBitSmarty->assignByRef('departments', $dept_tree['depts']);
$gBitSmarty->assignByRef('tags', $dept_tree['tags']);
$gBitSmarty->assignByRef('subtags', $dept_tree['subtags']);
require_once CITIZEN_PKG_PATH . 'Citizen.php';
$gCitizen = new Citizen(null, $gTask->mCitizenId);
$gCitizen->load();
if ($gCitizen->isValid()) {
$gCitizen->loadXrefList();
$gBitSmarty->assignByRef('citizenInfo', $gCitizen->mInfo);
}
$gBitSystem->setBrowserTitle("Task List Item");
$gBitSystem->display('bitpackage:tasks/show_task.tpl', NULL, array('display_mode' => 'display'));
} else {
header("location: " . TASKS_PKG_URL . "view.php");
die;