本文整理匯總了PHP中Dept::getLocalById方法的典型用法代碼示例。如果您正苦於以下問題:PHP Dept::getLocalById方法的具體用法?PHP Dept::getLocalById怎麽用?PHP Dept::getLocalById使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Dept
的用法示例。
在下文中一共展示了Dept::getLocalById方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __
?>
" title="Sort By Department"><?php
echo __('Department');
?>
</a>
</th>
</tr>
</thead>
<tbody>
<?php
$subject_field = TicketForm::objects()->one()->getField('subject');
$defaultDept = Dept::getDefaultDeptName();
//Default public dept.
if ($tickets->exists(true)) {
foreach ($tickets as $T) {
$dept = $T['dept__ispublic'] ? Dept::getLocalById($T['dept_id'], 'name', $T['dept__name']) : $defaultDept;
$subject = $subject_field->display($subject_field->to_php($T['cdata__subject']) ?: $T['cdata__subject']);
$status = TicketStatus::getLocalById($T['status_id'], 'value', $T['status__name']);
if (false) {
// XXX: Reimplement attachment count support
$subject .= ' <span class="Icon file"></span>';
}
$ticketNumber = $T['number'];
if ($T['isanswered'] && !strcasecmp($T['status__state'], 'open')) {
$subject = "<b>{$subject}</b>";
$ticketNumber = "<b>{$ticketNumber}</b>";
}
?>
<tr id="<?php
echo $T['ticket_id'];
?>