protected function getModuleType()
 {
     return PageTypeModule::getType();
 }
예제 #2
0
 /**
  * getPageTypes()
  * description:
  * called once in page_detail widget prepare
  * @return hash of page_types options
  */
 public function getPageTypes()
 {
     $aResult = array();
     foreach (Module::listModulesByType(PageTypeModule::getType()) as $sKey => $aValues) {
         $aResult[$sKey]['value'] = $sKey;
         $aResult[$sKey]['name'] = TranslationPeer::getString('page_type.' . $aValues['name'], null, StringUtil::makeReadableName($aValues['name']));
     }
     return $aResult;
 }