本文整理匯總了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;
}