public function getAll() { $model = $this->getModel(); $roots = \Admin\Models\Navigation::roots(); \Base::instance()->set('roots', $roots); \Base::instance()->set('selected', 'null'); $html = \Dsc\System::instance()->get('theme')->renderView('Admin/Views::menus/list_parents.php'); return $this->outputJson($this->getJsonResponse(array('result' => $html))); }
public function fetchConditions() { parent::fetchConditions(); $this->setCondition('type', $this->type()); return $this; }