本文整理匯總了PHP中CMS::admin_path方法的典型用法代碼示例。如果您正苦於以下問題:PHP CMS::admin_path方法的具體用法?PHP CMS::admin_path怎麽用?PHP CMS::admin_path使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CMS
的用法示例。
在下文中一共展示了CMS::admin_path方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: delete_url
public function delete_url($name)
{
if (trim($name) == '') {
return '#';
}
return CMS::admin_path("vars/delete/id-{$name}/");
}
示例2: initialize
static function initialize($config = array())
{
foreach ($config as $key => $value) {
self::${$key} = $value;
}
if (self::$disabled) {
return;
}
CMS::add_component(self::$name, new CMS_Stockroom_Router());
CMS_Admin::menu(self::$admin_menu_title, CMS::admin_path('stockroom'), 'bookshelf.png');
}
示例3: make_uri
public function make_uri()
{
$args = func_get_args();
$path = 'vars' . (self::$component ? '-' . self::$component : '');
if ($args[0] == 'dir') {
return CMS::admin_path() . "{$path}/" . $args[1];
}
return CMS::admin_path() . "{$path}/" . $args[0] . '/' . $args[1];
}
示例4: flush_caches
public function flush_caches()
{
WS::env()->cache->flush();
return $this->redirect_to(CMS::admin_path());
}
示例5: admin_path_replace_cb
/**
* @param array $matches
*
* @return string
*/
protected function admin_path_replace_cb($m)
{
return CMS::admin_path(trim($m[1]));
}
示例6: table_url
public function table_url($table)
{
return CMS::admin_path("factory/{$table}");
}