Esempio n. 1
0
 public function __construct($id)
 {
     parent::__construct();
     $this->id = $id;
     $this->setPath($id);
     $this->grantFunction = array($this, "isGranted");
 }
Esempio n. 2
0
 public function getArray()
 {
     $array = parent::getArray();
     $array['nested_route'] = $this->nestedRoute;
     $array['enabled'] = $this->enabled;
     $array['parent'] = $this->parent;
     $array['slug'] = $this->slug;
     $array['meta_datas'] = $this->metaDatas;
     $array['crud'] = $this->crud;
     $array['parameters'] = $this->parameters;
     return $array;
 }