Beispiel #1
0
 public function __construct($parent, $id, $name, $url, $icon = null)
 {
     $this->parent = $parent;
     $this->id = $id;
     $this->name = $name;
     $this->url = URLHelper::admin_url($url);
     $this->icon = $icon;
     $this->children = array();
 }
Beispiel #2
0
 protected function admin_users_url()
 {
     return URLHelper::admin_users_url();
 }
Beispiel #3
0
 protected function redirect_to_admin_dashboard()
 {
     $this->redirect_to(URLHelper::admin_dashboard_url());
 }
Beispiel #4
0
 public function url_for_action($action = null, $id = null)
 {
     return URLHelper::admin_editable_action_url($this->type_id(), $action, $id);
 }