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