function &get_dataset(&$counter, $params = array()) { $params['depth'] = 1; if (isset($_REQUEST['only_parents']) && $_REQUEST['only_parents'] == 'false') { $params['only_parents'] = false; } else { $params['only_parents'] = true; } $params['restrict_by_class'] = false; $params['path'] = $this->_process_path(); return parent::get_dataset($counter, $params); }
function &get_dataset(&$counter, $params = array()) { $params['depth'] = 1; $request = request::instance(); if ($request->get_attribute('only_parents') == 'false') { $params['only_parents'] = false; } else { $params['only_parents'] = true; } $params['restrict_by_class'] = false; $params['path'] = $this->_process_path(); return parent::get_dataset($counter, $params); }