本文整理匯總了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);
}