public function __construct($id) { parent::__construct(); $this->id = $id; $this->setPath($id); $this->grantFunction = array($this, "isGranted"); }
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; }