/** * * Does the hard work: installs the module and registers needed constants * * @return string */ public function install() { $strReturn = ""; $strReturn .= "Assigning null-properties and elements to the default language.\n"; if ($this->strContentLanguage == "de") { $strReturn .= " Target language: de\n"; if (class_exists("class_module_pages_page", false) || class_classloader::getInstance()->loadClass("class_module_pages_page") !== false) { class_module_pages_page::assignNullProperties("de", true); } if (class_exists("class_module_pages_pageelement", false) || class_classloader::getInstance()->loadClass("class_module_pages_pageelement") !== false) { class_module_pages_pageelement::assignNullElements("de"); } $objLang = new class_module_languages_language(); $objLang->setStrAdminLanguageToWorkOn("de"); } else { $strReturn .= " Target language: en\n"; if (class_exists("class_module_pages_page", false) || class_classloader::getInstance()->loadClass("class_module_pages_page") !== false) { class_module_pages_page::assignNullProperties("en", true); } if (class_exists("class_module_pages_pageelement", false) || class_classloader::getInstance()->loadClass("class_module_pages_pageelement") !== false) { class_module_pages_pageelement::assignNullElements("en"); } $objLang = new class_module_languages_language(); $objLang->setStrAdminLanguageToWorkOn("en"); } return $strReturn; }