本文整理汇总了PHP中plugins::page_plugins_admin方法的典型用法代码示例。如果您正苦于以下问题:PHP plugins::page_plugins_admin方法的具体用法?PHP plugins::page_plugins_admin怎么用?PHP plugins::page_plugins_admin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类plugins
的用法示例。
在下文中一共展示了plugins::page_plugins_admin方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: listing
/**
* list the containers
*
* @return void
* @author Andy Bennett
*/
private function listing()
{
$data = array('action' => 'edit', 'name' => null, 'role' => User::instance()->get_role());
Event::run('steamcore.aclcheck', $data);
$root = ORM::factory('pages_position')->where('lft', 0)->find();
$xml = $root->render_descendants('pages', false)->render();
$l = xsl::translate_string($xml, 'page_plugins_list', array(), array(''));
$c = View::factory('pages/page_plugins_list', array('list' => $l, 'controller' => 'page_plugins'))->render();
preg_match_all('/{pid=([0-9]+)}/', $c, $matches);
$count = count($matches[0]);
for ($i = 0; $i < $count; $i++) {
$c = str_replace($matches[0][$i], plugins::page_plugins_admin($matches[1][$i]), $c);
}
$content = array();
$content['content'] = new stdClass();
$content['content']->title = 'Page Plugins';
$content['content']->copy = $c;
Assets::instance()->add_css('/cache/css/display');
Assets::instance()->add_javascript('/cache/js/display');
$container = Container::instance('display')->render($content);
Display::instance()->display($container);
}