本文整理汇总了PHP中DataObject::summaryFields方法的典型用法代码示例。如果您正苦于以下问题:PHP DataObject::summaryFields方法的具体用法?PHP DataObject::summaryFields怎么用?PHP DataObject::summaryFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataObject
的用法示例。
在下文中一共展示了DataObject::summaryFields方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: summaryFields
/**
* Summaryfields for display in tables.
*
* @return array
*
* @author Roland Lehmann <rlehmann@pixeltricks.de>
* @since 30.6.2011
*/
public function summaryFields()
{
$fields = parent::summaryFields();
$fields['Name'] = _t("SilvercartProduct.COLUMN_TITLE");
$fields['Email'] = _t("SilvercartAddress.EMAIL");
return $fields;
}
示例2: summaryFields
/**
* Gets the summary fields for this object
* @return {array} Map of fields to labels
*/
public function summaryFields()
{
$fields = parent::summaryFields();
if (array_key_exists('Created', $fields)) {
$fields['Created'] = _t('KapostConversionHistory.CONVERSION_DATE', '_Conversion Date');
}
return $fields;
}
开发者ID:helpfulrobot,项目名称:webbuilders-group-silverstripe-kapost-bridge,代码行数:12,代码来源:KapostConversionHistory.php
示例3: summaryFields
public function summaryFields()
{
$fields = parent::summaryFields();
if (FeatureGroup::get()->exists()) {
$fields['Group.Title'] = 'Group';
}
return $fields;
}
示例4: summaryFields
public function summaryFields()
{
$fields = parent::summaryFields();
if (!class_exists('EventRegistration')) {
unset($fields['Capacity']);
}
return $fields;
}
开发者ID:helpfulrobot,项目名称:silverstripe-australia-silverstripe-eventlocations,代码行数:8,代码来源:EventLocation.php
示例5: summaryFields
public function summaryFields()
{
$fields = parent::summaryFields();
if (isset($fields['EmailAddress'])) {
$fields['EmailAddress'] = _t('UserDefinedForm.EMAILADDRESS', 'Email');
}
if (isset($fields['EmailSubject'])) {
$fields['EmailSubject'] = _t('UserDefinedForm.EMAILSUBJECT', 'Subject');
}
if (isset($fields['EmailFrom'])) {
$fields['EmailFrom'] = _t('UserDefinedForm.EMAILFROM', 'From');
}
return $fields;
}
示例6: getContextFields
/**
* @param DataObject $target
* @return array
*/
public function getContextFields(DataObject $target)
{
$fields = $target->summaryFields();
$result = array();
foreach ($fields as $field => $fieldDesc) {
$result[$field] = $target->{$field};
}
if ($target instanceof SiteTree) {
$result['CMSLink'] = singleton('CMSMain')->Link("show/{$target->ID}");
} else {
if ($target->hasMethod('WorkflowLink')) {
$result['CMSLink'] = $target->WorkflowLink();
}
}
return $result;
}
示例7: summaryFields
/**
* Summary fields
*
* @return array
*
* @author Sebastian Diel <sdiel@pixeltricks.de>
* @since 26.04.2012
*/
public function summaryFields()
{
$summaryFields = array_merge(parent::summaryFields(), array('FrontTitle' => $this->fieldLabel('FrontTitle')));
$this->extend('updateSummaryFields', $summaryFields);
return $summaryFields;
}
示例8: summaryFields
/**
* Summary fields
*
* @return array
*
* @author Sebastian Diel <sdiel@pixeltricks.de>
* @since 26.04.2012
*/
public function summaryFields()
{
$summaryFields = array_merge(parent::summaryFields(), array('Title' => $this->fieldLabel('Title'), 'ISO2' => $this->fieldLabel('ISO2'), 'ISO3' => $this->fieldLabel('ISO3'), 'Continent' => $this->fieldLabel('Continent'), 'Currency' => $this->fieldLabel('Currency'), 'AttributedZones' => $this->fieldLabel('AttributedZones'), 'AttributedPaymentMethods' => $this->fieldLabel('AttributedPaymentMethods'), 'ActivityText' => $this->fieldLabel('ActivityText'), 'getFreeOfShippingCostsFromNice' => $this->fieldLabel('freeOfShippingCostsFrom'), 'IsPrioritiveText' => $this->fieldLabel('IsPrioritiveShort'), 'IsNonTaxable' => $this->fieldLabel('IsNonTaxable')));
$this->extend('updateSummary', $summaryFields);
return $summaryFields;
}
示例9: summaryFields
/**
* Define sumaryfields;
* @return array $summaryFields
*/
public function summaryFields()
{
$summaryFields = parent::summaryFields();
$summaryFields = array_merge($summaryFields, array('Title' => _t('News.TITLE', 'Title'), 'Author' => _t('News.AUTHOR', 'Author'), 'PublishFrom' => _t('News.PUBLISH', 'Publish from'), 'Status' => _t('News.STATUS', 'Status')));
return $summaryFields;
}
示例10: summaryFields
/**
* i18n for summary fields
*
* @return array
*
* @author Sebastian Diel <sdiel@pixeltricks.de>
* @since 05.04.2011
*/
public function summaryFields()
{
return array_merge(parent::summaryFields(), array('Title' => _t('SilvercartNumberRange.TITLE', 'Title'), 'StartNumber' => _t('SilvercartNumberRange.START', 'Start'), 'EndNumber' => _t('SilvercartNumberRange.END', 'End'), 'ActualNumber' => _t('SilvercartNumberRange.ACTUAL', 'Actual')));
}
示例11: summaryFields
/**
* Summaryfields for display in tables.
*
* @return array
*
* @author Ramon Kupper <rkupper@pixeltricks.de>
* @since 29.03.2011
*/
public function summaryFields()
{
return array_merge(parent::summaryFields(), array('Title' => $this->fieldLabel('Title'), 'Abbreviation' => $this->fieldLabel('Abbreviation')));
}