function initConfig() { $slice = explode('|*|', $this->_data->get('slice', '0|*|0|*|0')); $this->endLevel = $slice[1]; if ($this->endLevel == 0) { $this->endLevel = 1000; } $this->startLevel = $slice[0]; $this->improvedStartLevel = $slice[2]; $this->opened = $this->_data->get('opened', 2); $ol = NextendParse::fromArray($this->_data->get('openedlevels', '')); $this->openedlevels = array_flip($ol); $this->_config = array(); $this->_config['active'] = intval($this->_data->get('active', 1)); $this->_config['parentlink'] = intval($this->_data->get('parentlink', 0)); $this->_config['rootasitem'] = intval($this->_data->get('rootasitem', 0)); $this->_config['displaynum'] = intval($this->_data->get('displaynum', 0)); }