當前位置: 首頁>>代碼示例>>PHP>>正文


PHP LabelUtil::getUncapitalizedModelLabelByCountAndModelClassName方法代碼示例

本文整理匯總了PHP中LabelUtil::getUncapitalizedModelLabelByCountAndModelClassName方法的典型用法代碼示例。如果您正苦於以下問題:PHP LabelUtil::getUncapitalizedModelLabelByCountAndModelClassName方法的具體用法?PHP LabelUtil::getUncapitalizedModelLabelByCountAndModelClassName怎麽用?PHP LabelUtil::getUncapitalizedModelLabelByCountAndModelClassName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在LabelUtil的用法示例。


在下文中一共展示了LabelUtil::getUncapitalizedModelLabelByCountAndModelClassName方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getSkipCountMessageContentByModelClassName

 public static function getSkipCountMessageContentByModelClassName($skipCount, $modelClassName)
 {
     if ($skipCount > 0) {
         return $skipCount . ' ' . LabelUtil::getUncapitalizedModelLabelByCountAndModelClassName($skipCount, $modelClassName) . ' ' . Zurmo::t('ZurmoModule', 'skipped because you do not have sufficient permissions.');
     }
     throw new NotSupportedException();
 }
開發者ID:sandeep1027,項目名稱:zurmo_,代碼行數:7,代碼來源:MassDeleteInsufficientPermissionSkipSavingUtil.php

示例2: testGetUncapitalizedModelLabelByCountAndModelClassName

 public function testGetUncapitalizedModelLabelByCountAndModelClassName()
 {
     $content = LabelUtil::getUncapitalizedModelLabelByCountAndModelClassName(1, 'A');
     $this->assertEquals($content, 'a');
     $content = LabelUtil::getUncapitalizedModelLabelByCountAndModelClassName(4, 'A');
     $this->assertEquals($content, 'as');
     $content = LabelUtil::getUncapitalizedModelLabelByCountAndModelClassName(0, 'A');
     $this->assertEquals($content, 'as');
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:9,代碼來源:LabelUtilTest.php

示例3: renderControlEditable

 /**
  * @return string
  */
 protected function renderControlEditable()
 {
     assert('$this->model instanceof ProductTemplate || $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('ProductTemplatesModule', 'Type a ' . LabelUtil::getUncapitalizedModelLabelByCountAndModelClassName(1, 'ProductCategory'), LabelUtil::getTranslationParamsForAllModules())));
     $cClipWidget->endClip();
     $content = $cClipWidget->getController()->clips['ModelElement'];
     return $content;
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:13,代碼來源:MultipleProductCategoriesForProductTemplateElement.php

示例4: getWidgetHintText

 protected function getWidgetHintText()
 {
     return Zurmo::t('ProductTemplatesModule', 'Type a ' . LabelUtil::getUncapitalizedModelLabelByCountAndModelClassName(1, 'ProductCategory'), LabelUtil::getTranslationParamsForAllModules());
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:4,代碼來源:MultipleProductCategoriesForProductTemplateElement.php

示例5: getCompleteMessage

 protected function getCompleteMessage()
 {
     $content = $this->totalRecordCount . ' ' . LabelUtil::getUncapitalizedModelLabelByCountAndModelClassName($this->totalRecordCount, 'User') . ' ' . $this->getCompleteMessageSuffix() . '.';
     return $content;
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:5,代碼來源:RebuildSecurityCacheProgressView.php


注:本文中的LabelUtil::getUncapitalizedModelLabelByCountAndModelClassName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。