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


PHP Key::listEmployees方法代碼示例

本文整理匯總了PHP中Key::listEmployees方法的典型用法代碼示例。如果您正苦於以下問題:PHP Key::listEmployees方法的具體用法?PHP Key::listEmployees怎麽用?PHP Key::listEmployees使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Key的用法示例。


在下文中一共展示了Key::listEmployees方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

 $allCpu = $equip->listcpuUG();
 $allMon = $equip->listmonUG();
 $allPer = $equip->listperUG();
 $allKey = $equip->listkeyUG();
 $allFurn = $equip->listfurnUG();
 $listStatus = $equip->listStatus();
 //Shared tags
 $allTags = $cpu->listAllTags();
 $allConns = $cpu->listAllConn();
 //For furniture edit dialog
 $furn_types = $furniture->listTypes();
 $furn_departments = $furniture->listDepartments();
 //For key edit dialog
 $key_makes = $key->listMakes();
 $key_locktypes = $key->listLockTypes();
 $key_empassign = $key->listEmployees();
 //For cpu edit dialog
 $cpu_makes = $cpu->listMakes();
 $cpu_assign = $cpu->listEmployees();
 $cpu_departments = $cpu->listDepartments();
 //For mon edit dialog
 $mon_makes = $mon->listMakes();
 $mon_assign = $mon->listEmployees();
 $mon_departments = $mon->listDepartments();
 //For per edit dialog
 $per_types = $per->listTypes();
 $per_assign = $per->listEmployees();
 $per_departments = $per->listDepartments();
 $render = true;
 $l10nFile = 'l10n/grouping.php';
 $viewFile = 'views/grouping.php';
開發者ID:hughnguy,項目名稱:php,代碼行數:31,代碼來源:grouping.php

示例2: Key

$equip = new Key();
//============================================================================================
// Load the page requested by the user
//============================================================================================
if (!isset($_GET['page'])) {
    if (isset($_GET['discarded']) && $_GET['discarded'] === '1') {
        $equip->showDiscarded = true;
    }
    $data = $equip->listItems();
    foreach ($data as $key => $d) {
        $data[$key]['tag'] = $equip->listTags($data[$key]['key_id']);
    }
    $allTags = $equip->listAllTags();
    $makes = $equip->listMakes();
    $lockTypes = $equip->listLockTypes();
    $employees = $equip->listEmployees();
    $render = true;
    $l10nFile = 'l10n/key.php';
    $viewFile = 'views/key.php';
} elseif ($_GET['page'] === "add") {
    $data = $equip->addItem($_POST);
    header('Content-Type: application/json; charset=utf-8');
    echo json_encode($data);
} elseif ($_GET['page'] === 'edit') {
    $data = $equip->editItem($_POST);
    header('Content-Type: application/json; charset=utf-8');
    echo json_encode($data);
} elseif ($_GET['page'] === "fetch") {
    //Fetch specific key information
    $editdata = $equip->fetchItem($_POST['key_id']);
    header('Content-Type: application/json; charset=utf-8');
開發者ID:hughnguy,項目名稱:php,代碼行數:31,代碼來源:key.php


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