当前位置: 首页>>代码示例>>PHP>>正文


PHP ProductCategory::getModelLabelByTypeAndLanguage方法代码示例

本文整理汇总了PHP中ProductCategory::getModelLabelByTypeAndLanguage方法的典型用法代码示例。如果您正苦于以下问题:PHP ProductCategory::getModelLabelByTypeAndLanguage方法的具体用法?PHP ProductCategory::getModelLabelByTypeAndLanguage怎么用?PHP ProductCategory::getModelLabelByTypeAndLanguage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ProductCategory的用法示例。


在下文中一共展示了ProductCategory::getModelLabelByTypeAndLanguage方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: renderContent

 protected function renderContent()
 {
     $singularLabel = ProductCategory::getModelLabelByTypeAndLanguage('Singular');
     $pluralLabel = Zurmo::t('ProductTemplatesModule', 'Categories');
     $content = $this->renderViewToolBar(false);
     $content .= '<div>';
     $content .= $this->renderTreeMenu('productCategory', 'productCategories', $singularLabel);
     $content .= '</div>';
     return $content;
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:10,代码来源:ProductCategoriesTreeListView.php

示例2: renderControlEditable

 /**
  * @return string
  */
 protected function renderControlEditable()
 {
     assert('$this->model instanceof Product || $this->model instanceof Product');
     $cClipWidget = new CClipWidget();
     $cClipWidget->beginClip("ModelElement");
     $cClipWidget->widget('application.core.widgets.MultiSelectAutoComplete', array('name' => $this->getNameForIdField(), 'id' => $this->getIdForIdField(), 'jsonEncodedIdsAndLabels' => CJSON::encode($this->getExistingProductCategoriesRelationsIdsAndLabels()), 'sourceUrl' => Yii::app()->createUrl('productTemplates/default/autoCompleteAllProductCategoriesForMultiSelectAutoComplete'), 'htmlOptions' => array('disabled' => $this->getDisabledValue()), 'hintText' => Zurmo::t('ProductsModule', 'Type a ' . ProductCategory::getModelLabelByTypeAndLanguage('SingularLowerCase'), LabelUtil::getTranslationParamsForAllModules())));
     $cClipWidget->endClip();
     $content = $cClipWidget->getController()->clips['ModelElement'];
     return $content;
 }
开发者ID:sandeep1027,项目名称:zurmo_,代码行数:13,代码来源:MultipleProductCategoriesForProductElement.php

示例3: renderContent

 /**
  * Override because we do not need to render
  * the view tool bar or any extra spacing.
  */
 protected function renderContent()
 {
     return $this->renderTreeMenu('productCategory', 'productCategories', ProductCategory::getModelLabelByTypeAndLanguage('Plural'));
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:8,代码来源:ProductCategoriesModalTreeListView.php

示例4: getCreateLinkDisplayLabel

 protected function getCreateLinkDisplayLabel()
 {
     $singularLabel = ProductCategory::getModelLabelByTypeAndLanguage('Singular');
     return Zurmo::t('ProductTemplatesModule', 'Create ' . $singularLabel, LabelUtil::getTranslationParamsForAllModules());
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:5,代码来源:ProductCategoriesZeroModelsYetView.php

示例5: translatedAttributeLabels

 /**
  * @return array
  */
 protected static function translatedAttributeLabels($language)
 {
     $params = LabelUtil::getTranslationParamsForAllModules();
     return array_merge(parent::translatedAttributeLabels($language), array('productTemplate' => Zurmo::t('ProductTemplatesModule', 'ProductTemplatesModuleSingularLabel', $params, null, $language), 'products' => Zurmo::t('ProductsModule', 'ProductsModulePluralLabel', $params, null, $language), 'sellPriceFormula' => Zurmo::t('ProductTemplatesModule', 'Sell Price Formula', array(), null, $language), 'productCategories' => ProductCategory::getModelLabelByTypeAndLanguage('Plural', $language), 'cost' => Zurmo::t('ProductTemplatesModule', 'Cost', array(), null, $language), 'listPrice' => Zurmo::t('ProductTemplatesModule', 'List Price', array(), null, $language), 'sellPrice' => Zurmo::t('ProductTemplatesModule', 'Sell Price', array(), null, $language), 'type' => Zurmo::t('ProductTemplatesModule', 'Type', array(), null, $language), 'status' => Zurmo::t('ProductTemplatesModule', 'Status', array(), null, $language)));
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:8,代码来源:ProductTemplate.php

示例6: getHomeLinkLabel

 protected function getHomeLinkLabel()
 {
     $pluralLabel = ProductCategory::getModelLabelByTypeAndLanguage('Plural');
     return Zurmo::t('ProductTemplatesModule', $pluralLabel . ' Home');
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:5,代码来源:ProductCategoryBreadCrumbView.php

示例7: resolveConfirmAlertInHtmlOptions

 /**
  * Resolve the alert display in html options
  * @param array $htmlOptions
  * @return array
  */
 protected function resolveConfirmAlertInHtmlOptions($htmlOptions)
 {
     $htmlOptions['confirm'] = Zurmo::t('Core', 'Are you sure you want to delete this {modelLabel}?', array('{modelLabel}' => ProductCategory::getModelLabelByTypeAndLanguage('Singular')));
     return $htmlOptions;
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:10,代码来源:ProductCategoryDeleteLinkActionElement.php

示例8: getHomeLinkLabel

 protected function getHomeLinkLabel()
 {
     $pluralLabel = ProductCategory::getModelLabelByTypeAndLanguage('Plural');
     $pluralLabel = Zurmo::t('ProductTemplatesModule', $pluralLabel, LabelUtil::getTranslationParamsForAllModules());
     return Zurmo::t('ProductTemplatesModule', '{pluralLabel} Home', array('{pluralLabel}' => $pluralLabel));
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:6,代码来源:ProductCategoryBreadCrumbView.php


注:本文中的ProductCategory::getModelLabelByTypeAndLanguage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。