本文整理汇总了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();
}
示例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');
}
示例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;
}
示例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;
}