本文整理汇总了PHP中Key::listTags方法的典型用法代码示例。如果您正苦于以下问题:PHP Key::listTags方法的具体用法?PHP Key::listTags怎么用?PHP Key::listTags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Key
的用法示例。
在下文中一共展示了Key::listTags方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
//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';
} elseif ($_GET['page'] === 'fetch') {
switch ($_POST['table']) {
case 'indicium_furn':
$editdata = $furniture->FetchItem($_POST['id']);
$editdata['tags'] = $furniture->listTags($_POST['id']);
break;
case 'indicium_keys':
$editdata = $key->FetchItem($_POST['id']);
$editdata['tags'] = $key->listTags($_POST['id']);
break;
case 'indicium_cpu':
$editdata = $cpu->fetchItem($_POST['id']);
$editdata['tags'] = $cpu->listTags($_POST['id']);
$editdata['conns'] = $cpu->listConn($_POST['id']);
break;
case 'indicium_mon':
$editdata = $mon->fetchItem($_POST['id']);
$editdata['tags'] = $mon->listTags($_POST['id']);
$editdata['conns'] = $mon->listConn($_POST['id']);
break;
case 'indicium_per':
$editdata = $per->fetchItem($_POST['id']);
$editdata['tags'] = $per->listTags($_POST['id']);
$editdata['conns'] = $per->listConn($_POST['id']);
示例2: Key
$l10n->setLanguage($SESSION->lang);
//============================================================================================
// Model
//============================================================================================
require 'models/key.php';
$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');