_loadDataSec()) { } else { $this->_initDataSec(); } return $this->_data_sec; }*/ function &getDataCat($sectionList) { if ($this->_loadDataCat($sectionList)) { } else { $this->_initDataCat(); } return $this->_data_cat; } /* function _loadDataSec() { if (empty($this->_data_sec)) { $query = 'SELECT s.id, s.title' . ' FROM #__phocadownload_sections AS s' . ' WHERE s.published = 1' . ' ORDER BY s.ordering'; $this->_db->setQuery($query); $this->_data_sec = $this->_db->loadObjectList(); return (boolean) $this->_data_sec; } return true; }*/ /* function _loadDataCat($sectionList) { if (empty($this->_data_cat)) { $query = 'SELECT c.id, c.title, c.section' .' FROM #__phocadownload_categories AS c' .' WHERE c.section IN ( \''.$sectionList.'\' )' .' AND c.published = 1' .' ORDER BY c.ordering'; $this->_db->setQuery($query); $this->_data_cat = $this->_db->loadObjectList(); return (boolean) $this->_data_cat; } return true; }*/ /* function _initDataSec() { if (empty($this->_data_sec)) { return (boolean) array(); } return true; }*/ function _initDataCat() { if (empty($this->_data_cat)) { return (boolean) array(); } return true; } } ?>