本文整理汇总了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>