setDBO(VoxelCareDB::getDatabase()); } function _buildQuery() { $where = array(); $this->_query = "SELECT id, name FROM #__vxc_countrylist ORDER BY id"; return $this->_query; } function getData() { if (!$this->_data) { $sql = $this->_buildQuery(); $this->_db->setQuery($sql); $this->_data =& $this->_db->loadObjectList(); } return $this->_data; } } ?>