/** * Constructor * * @param object An optional KConfig object with configuration options */ public function __construct(KConfig $config) { $config->append(array('acl' => true)); parent::__construct($config); $this->_acl = $config->acl; // Set the state // @TODO we need to look at what states we can purge, is getting messy here $this->_state->insert('acl', 'cmd', 'auth_view')->insert('exclude', 'int', 0)->insert('hierarchy', 'boolean', false)->insert('enabled', 'int', KFactory::get('lib.joomla.application')->isSite())->insert('recurse', 'boolean', false)->insert('flat', 'boolean', false)->insert('path', 'int')->insert('parent', 'int')->insert('level', 'int', 1)->insert('levels', 'int')->insert('sort', 'cmd', 'path_sort')->insert('indent', 'boolean', false)->insert('sort', 'cmd', 'path_sort_ordering'); }
/** * Constructor * * @param object An optional KConfig object with configuration options */ public function __construct(KConfig $config) { parent::__construct($config); $this->_state->insert('limit', 'int', 0); }