public function getDocumentKindName()
 {
     if ($this->oDelegateProxy->getDocumentKind() !== CriteriaListWidgetDelegate::SELECT_WITHOUT) {
         return DocumentKindInputWidgetModule::getDocumentKindName($this->oDelegateProxy->getDocumentKind());
     }
     return $this->oDelegateProxy->getDocumentKind();
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 4
0
 /**
  * @deprecated use DocumentKindInputWidgetModule::getDocumentKindName()
  */
 public static function getDocumentKindName($sKey)
 {
     return DocumentKindInputWidgetModule::getDocumentKindName($sKey);
 }