public function delete_url($name) { if (trim($name) == '') { return '#'; } return CMS::admin_path("vars/delete/id-{$name}/"); }
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'); }
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]; }
public function flush_caches() { WS::env()->cache->flush(); return $this->redirect_to(CMS::admin_path()); }
/** * @param array $matches * * @return string */ protected function admin_path_replace_cb($m) { return CMS::admin_path(trim($m[1])); }
public function table_url($table) { return CMS::admin_path("factory/{$table}"); }