本文整理汇总了PHP中DataExtension::updateFieldLabels方法的典型用法代码示例。如果您正苦于以下问题:PHP DataExtension::updateFieldLabels方法的具体用法?PHP DataExtension::updateFieldLabels怎么用?PHP DataExtension::updateFieldLabels使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataExtension
的用法示例。
在下文中一共展示了DataExtension::updateFieldLabels方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: updateFieldLabels
/**
* @inheritdoc
*/
public function updateFieldLabels(&$labels)
{
$labels = parent::updateFieldLabels($labels);
$labels['Title'] = _t('OnePageSlide.db_Title', 'Title');
$labels['BackgroundColor'] = _t('OnePageSlide.db_BackgroundColor', 'Background Color');
$labels['HeadingColor'] = _t('OnePageSlide.db_HeadingColor', 'Heading Color');
$labels['TextColor'] = _t('OnePageSlide.db_TextColor', 'Text Color');
$labels['AdditionalCSSClass'] = _t('OnePageSlide.db_AdditionalCSSClass', 'Additional CSS class');
$labels['BackgroundImage'] = _t('OnePageSlide.has_many_BackgroundImage', 'Background Image');
}
示例2: updateFieldLabels
/**
* Present translatable form fields in a more readable fashion
* @see DataExtension::updateFieldLabels()
* @inheritdoc
*/
public function updateFieldLabels(&$labels)
{
parent::updateFieldLabels($labels);
$statics = self::$collectorCache[$this->ownerBaseClass];
foreach ($statics as $field => $type) {
$parts = explode(TRANSLATABLE_COLUMN_SEPARATOR, $field);
$labels[$field] = FormField::name_to_label($parts[0]) . ' (' . $parts[1] . ')';
}
}
示例3: updateFieldLabels
/**
* Field lable for Locale should always be multilingual
*
* @param array &$labels Lables to update
*
* @return void
*
* @author Roland Lehmann <rlehmann@pixeltricks.de>, Sebastian Diel <sdiel@pixeltricks.de>
* @since 04.05.2012
*/
public function updateFieldLabels(&$labels)
{
parent::updateFieldLabels($labels);
$labels['Locale'] = _t('SilvercartProductLanguage.LOCALE');
}
示例4: updateFieldLabels
public function updateFieldLabels(&$labels)
{
parent::updateFieldLabels($labels);
$labels['Priority'] = _t('GoogleSitemaps.METAPAGEPRIO', "Page Priority");
}