private static function getDocumentKinds()
 {
     if (self::$aDOCUMENT_KINDS === null) {
         self::$aDOCUMENT_KINDS = DocumentKindInputWidgetModule::getDocumentKindsAssoc();
         asort(self::$aDOCUMENT_KINDS);
     }
     return self::$aDOCUMENT_KINDS;
 }
 public function getConfigurationModes()
 {
     $aResult = array();
     $aDocumentCategories = DocumentListFrontendModule::getCategoryOptions();
     $aResult['document_categories'] = WidgetJsonFileModule::jsonOrderedObject($aDocumentCategories);
     $aResult['tags'] = WidgetJsonFileModule::jsonOrderedObject(DocumentListFrontendModule::getTagOptions());
     $aResult['document_kind'] = WidgetJsonFileModule::jsonOrderedObject(array('' => TranslationPeer::getString('wns.document_kind.all')) + DocumentKindInputWidgetModule::getDocumentKindsAssoc());
     $aResult['list_template'] = array_keys(DocumentListFrontendModule::getTemplateOptions());
     if (count($aDocumentCategories) > 0) {
         $aResult['sort_by'] = DocumentListFrontendModule::getSortOptions();
         $aResult['sort_order'] = DocumentListFrontendModule::getSortOrders();
     }
     return $aResult;
 }
Esempio n. 3
0
 /**
  * @deprecated use DocumentKindInputWidgetModule::getDocumentKindsAssoc()
  */
 public static function getDocumentKindsAssoc()
 {
     return DocumentKindInputWidgetModule::getDocumentKindsAssoc();
 }