本文整理汇总了PHP中PerchUtil::subnav方法的典型用法代码示例。如果您正苦于以下问题:PHP PerchUtil::subnav方法的具体用法?PHP PerchUtil::subnav怎么用?PHP PerchUtil::subnav使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PerchUtil
的用法示例。
在下文中一共展示了PerchUtil::subnav方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: subnav
public function subnav($CurrentUser, $opts)
{
return PerchUtil::subnav($CurrentUser, $opts, $this->Lang);
}
示例2: array
<?php
echo PerchUtil::subnav($CurrentUser, array(array('page' => array('core/apps/content', 'core/apps/content/page', 'core/apps/content/page/add', 'core/apps/content/page/edit', 'core/apps/content/page/delete', 'core/apps/content/page/details', 'core/apps/content/edit', 'core/apps/content/options', 'core/apps/content/delete', 'core/apps/content/denied', 'core/apps/content/republish', 'core/apps/content/reorder', 'core/apps/content/reorder/region', 'core/apps/content/revisions', 'core/apps/content/revisions/revert', 'core/apps/content/collections', 'core/apps/content/collections/edit', 'core/apps/content/collections/edit/options', 'core/apps/content/collections/options', 'core/apps/content/collections/import', 'core/apps/content/delete/collection/item'), 'label' => 'Add/Edit'), array('page' => array('core/apps/content/manage/collections', 'core/apps/content/manage/collections/edit', 'core/apps/content/manage/collections/delete', 'core/apps/content/manage/collections/import'), 'label' => 'Collections', 'runway' => true, 'priv' => 'content.collections.manage'), array('page' => array('core/apps/content/page/templates', 'core/apps/content/page/templates/edit', 'core/apps/content/page/templates/delete'), 'label' => 'Master pages', 'priv' => 'content.templates.configure'), array('page' => array('core/apps/content/navigation', 'core/apps/content/navigation/edit', 'core/apps/content/navigation/pages', 'core/apps/content/navigation/reorder', 'core/apps/content/navigation/delete'), 'label' => 'Navigation groups', 'priv' => 'content.navgroups.configure'), array('page' => array('core/apps/content/routes', 'core/apps/content/routes/reorder', 'core/apps/content/routes/delete'), 'label' => 'Routes', 'runway' => true, 'priv' => 'content.routes.manage')));
示例3: array
<?php
echo PerchUtil::subnav($CurrentUser, array(array('page' => 'core/settings', 'label' => 'General'), array('page' => array('core/settings/backup', 'core/settings/backup/edit', 'core/settings/backup/restore', 'core/settings/backup/restore/general', 'core/settings/backup/delete'), 'label' => 'Backup', 'runway' => true, 'priv' => 'perch.backups.manage'), array('page' => 'core/settings/email', 'label' => 'Email'), array('page' => 'core/settings/tasks', 'label' => 'Scheduled tasks'), array('page' => 'core/settings/diagnostics', 'label' => 'Diagnostics')));
示例4: array
<?php
echo PerchUtil::subnav($CurrentUser, array(array('page' => 'core/users,core/users/edit,core/users/add,core/users/delete', 'label' => 'Add/Edit'), array('page' => 'core/users/roles,core/users/roles/edit,core/users/roles/delete,core/users/roles/actions', 'label' => 'Roles')));
示例5: array
<?php
echo PerchUtil::subnav($CurrentUser, array(array('page' => array('core/apps/assets', 'core/apps/assets/edit', 'core/apps/assets/delete'), 'label' => 'Add/Edit'), array('page' => array('core/apps/assets/tags', 'core/apps/assets/tags/edit', 'core/apps/assets/tags/delete'), 'label' => 'Tags')));
示例6: array
<?php
echo PerchUtil::subnav($CurrentUser, array(array('page' => 'core/account', 'label' => 'My Account')));
示例7: array
<?php
echo PerchUtil::subnav($CurrentUser, array(array('page' => array('core/help', 'core/help/textile', 'core/help/markdown'), 'label' => 'Help')));