/** * @param IGeoMapLocation $mapLocation * @param int $languageId */ public function __construct(IGeoMapLocation $mapLocation = NULL, $languageId = 0) { global $g_ado_db; parent::__construct($this->m_columnNames); if ($mapLocation === NULL || $languageId == 0) { return; } $locationLanguage = new Geo_MapLocationLanguage($mapLocation, $languageId); if ($locationLanguage->exists()) { $this->m_data['id'] = $locationLanguage->getContentId(); $this->fetch(); } else { $this->m_data = array(); $this->m_exists = false; } }
/** * Point is displayable? * @return bool */ public function isEnabled($language) { $language = (int) $language; $contentLanguage = new Geo_MapLocationLanguage($this, $language); return $contentLanguage->isEnabled(); }