public function getDisplayOptions()
 {
     $aResult = array();
     foreach (ResourceFinder::findResourceObjectsByExpressions(array(DIRNAME_MODULES, FrontendModule::getType(), FrontendModule::getNameByClassName('LoginFrontendModule'), DIRNAME_TEMPLATES, '/^[\\w_\\d-]+\\.tmpl$/')) as $oResource) {
         $sFileName = $oResource->getFileName('.tmpl');
         if (strpos($sFileName, '_action_') !== false) {
             continue;
         }
         $aResult[$sFileName] = StringUtil::makeReadableName($sFileName);
     }
     return $aResult;
 }
Пример #2
0
 public function acceptedRequestParams($aModulesToCheck = null)
 {
     $aResult = array();
     foreach ($this->oPage->getContentObjects() as $oContentObject) {
         if ($aModulesToCheck && !in_array($oContentObject->getContainerName(), $aModulesToCheck)) {
             continue;
         }
         $sModuleName = Module::getClassNameByTypeAndName(FrontendModule::getType(), $oContentObject->getObjectType());
         if (class_exists($sModuleName, true)) {
             $aResult = array_merge($aResult, $sModuleName::acceptedRequestParams());
         }
     }
     return $aResult;
 }