本文整理匯總了PHP中Helper_Admin::addFolderClass方法的典型用法代碼示例。如果您正苦於以下問題:PHP Helper_Admin::addFolderClass方法的具體用法?PHP Helper_Admin::addFolderClass怎麽用?PHP Helper_Admin::addFolderClass使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Helper_Admin
的用法示例。
在下文中一共展示了Helper_Admin::addFolderClass方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
</tr>
</thead>
<tbody>
<?php
foreach ($this->items as $i => $item) {
$checkedOut = !($item->checked_out == $userId || $item->checked_out == 0);
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0;
$canChange = $user->authorise('core.edit.state', CCK_COM . '.folder.' . $item->folder) && $canCheckin;
$canEdit = $user->authorise('core.edit', CCK_COM . '.folder.' . $item->folder);
$canEditFolder = $user->authorise('core.edit', CCK_COM . '.folder.' . $item->folder);
$canEditOwn = '';
$link = JRoute::_('index.php?option=' . $this->option . '&task=' . $this->vName . '.edit&id=' . $item->id);
$link2 = JRoute::_('index.php?option=' . $this->option . '&view=form&type=' . $item->name . '&return=cck&return_v=types');
$linkFilter = JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName() . '&folder_id=' . $item->folder);
$linkFolder = JRoute::_('index.php?option=' . $this->option . '&task=folder.edit&id=' . $item->folder);
Helper_Admin::addFolderClass($css, $item->folder, $item->folder_color, $item->folder_colorchar);
?>
<tr class="row<?php
echo $i % 2;
?>
" height="64px;">
<td class="center hidden-phone"><?php
Helper_Display::quickSlideTo('pagination-bottom', $i + 1);
?>
</td>
<td class="center hidden-phone"><?php
echo JHtml::_('grid.id', $i, $item->id);
?>
</td>
<td width="30px" class="center hidden-phone">
<?php
示例2: foreach
<tbody>
<?php
foreach ($this->items as $i => $item) {
$checkedOut = !($item->checked_out == $userId || $item->checked_out == 0);
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0;
$canChange = $user->authorise('core.edit.state', CCK_COM . '.folder.' . $item->id) && $canCheckin;
$canEdit = $user->authorise('core.edit', CCK_COM . '.folder.' . $item->id);
$canEditOwn = '';
$last = $item->id == 1 ? ' last' : '';
$link = JRoute::_('index.php?option=' . $this->option . '&task=folder.edit&id=' . $item->id);
$linkTemplate = JRoute::_('index.php?option=' . $this->option . '&view=' . _C1_NAME . '&folder_id=' . $item->id);
$linkType = JRoute::_('index.php?option=' . $this->option . '&view=' . _C2_NAME . '&folder_id=' . $item->id);
$linkField = JRoute::_('index.php?option=' . $this->option . '&view=' . _C3_NAME . '&folder_id=' . $item->id);
$linkSearch = JRoute::_('index.php?option=' . $this->option . '&view=' . _C4_NAME . '&folder_id=' . $item->id);
$linkFilter = JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName() . '&folder_id=' . $item->id);
Helper_Admin::addFolderClass($css, $item->id, $item->color, $item->colorchar, '60');
?>
<tr class="row<?php
echo $i % 2;
echo $last;
?>
" height="64px;">
<td class="center hidden-phone"><?php
Helper_Display::quickSlideTo('pagination-bottom', $i + 1);
?>
</td>
<td class="center hidden-phone"><?php
echo JHtml::_('grid.id', $i, $item->id);
?>
</td>
<td>