Geo_MapLocationContent::__construct PHP Method

__construct() public method

public __construct ( IGeoMapLocation $mapLocation = NULL, IGeoMapLocationLanguage $locationLanguage = NULL, array $p_contentSource = NULL, $p_forceExists = false )
$mapLocation IGeoMapLocation
$locationLanguage IGeoMapLocationLanguage
$p_contentSource array
    public function __construct(IGeoMapLocation $mapLocation = NULL, IGeoMapLocationLanguage $locationLanguage = NULL, array $p_contentSource = NULL, $p_forceExists = false)
    {
        global $g_ado_db;
        parent::__construct($this->m_columnNames);
        if ($p_contentSource) {
            $this->fetch($p_contentSource, $p_forceExists);
            return;
        }
        if ($mapLocation === NULL || $locationLanguage == NULL) {
            return;
        }
        if ($locationLanguage->exists()) {
            $this->m_data['id'] = $locationLanguage->getContentId();
            $this->fetch();
        } else {
            $this->m_data = array();
            $this->m_exists = false;
        }
    }