setDBO(VoxelCareDB::getDatabase()); } function getIdFromName($nameid) { $sql = "SELECT id FROM #__vxc_batchstate WHERE nameid = ".$this->_db->Quote($nameid); $this->_db->setQuery($sql); return $this->_db->loadResult(); } function _buildQuery() { $where = array(); $this->_query = "SELECT id, nameid, name FROM #__vxc_batchstate"; return $this->_query; } function getData() { if (empty($this->_data)) { $query = $this->_buildQuery(); $this->_data = $this->_getList($query); } return $this->_data; } } ?>