本文整理汇总了PHP中FieldGroup::setDescription方法的典型用法代码示例。如果您正苦于以下问题:PHP FieldGroup::setDescription方法的具体用法?PHP FieldGroup::setDescription怎么用?PHP FieldGroup::setDescription使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FieldGroup
的用法示例。
在下文中一共展示了FieldGroup::setDescription方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getCMSFields
public function getCMSFields()
{
$fields = parent::getCMSFields();
$group = new FieldGroup();
$group->setTitle(_t('News.Author'));
$group->setDescription(_t('News.AuthorHolder'));
$fields->addFieldToTab('Root.Main', $group, 'Content');
$field = new TextField('AuthorName', _t('News.Name'));
$group->push($field);
$field = new TextField('AuthorURI', _t('News.URI'));
$group->push($field);
$field = new TextField('AuthorEmail', _t('News.Email'));
$group->push($field);
return $fields;
}
示例2: getCMSFields
public function getCMSFields()
{
$fields = parent::getCMSFields();
$group = new FieldGroup();
$group->setTitle(_t('News.Author'));
$group->setDescription(_t('News.AuthorPage'));
$fields->addFieldToTab('Root.Main', $group, 'Metadata');
$field = new TextField('AuthorName', _t('News.Name'));
$group->push($field);
$field = new TextField('AuthorURI', _t('News.URI'));
$group->push($field);
$field = new TextField('AuthorEmail', _t('News.Email'));
$group->push($field);
$field = new DateField('Published', _t('News.Published'));
$field->setDescription(_t('News.PublishedDescription'));
$field->setLocale($this->config()->date_locale);
$field->setConfig('dateformat', $this->config()->date_format);
$field->setConfig('showcalendar', true);
$fields->addFieldToTab('Root.Main', $field, 'Content');
$field = new HtmlEditorField('Summary', _t('News.Summary'));
$field->setRows(4);
$fields->addFieldToTab('Root.Main', $field, 'Content');
return $fields;
}