/** * Validates if the requested module is valid for the current aspect. * If necessary, the current aspect is updated. * * @return void */ private function validateAndUpdateCurrentAspect() { if (_xmlLoader_ === true || $this->getArrModule("template") == "/folderview.tpl") { return; } $objModule = $this->getObjModule(); $strCurrentAspect = class_module_system_aspect::getCurrentAspectId(); if ($objModule != null && $objModule->getStrAspect() != "") { $arrAspects = explode(",", $objModule->getStrAspect()); if (count($arrAspects) == 1 && $arrAspects[0] != $strCurrentAspect) { $objAspect = new class_module_system_aspect($arrAspects[0]); if ($objAspect->rightView()) { class_module_system_aspect::setCurrentAspectId($arrAspects[0]); } } } }