当前位置: 首页>>代码示例>>PHP>>正文


PHP DataObject::summaryFields方法代码示例

本文整理汇总了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;
 }
开发者ID:silvercart,项目名称:silvercart,代码行数:15,代码来源:SilvercartEmailAddress.php

示例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;
 }
开发者ID:helpfulrobot,项目名称:burnbright-silverstripe-shop-comparison,代码行数:8,代码来源:Feature.php

示例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;
 }
开发者ID:camfindlay,项目名称:silverstripe-userforms,代码行数:14,代码来源:UserDefinedForm_EmailRecipient.php

示例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;
 }
开发者ID:rodneyway,项目名称:advancedworkflow,代码行数:20,代码来源:NotifyUsersWorkflowAction.php

示例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;
 }
开发者ID:silvercart,项目名称:silvercart,代码行数:14,代码来源:SilvercartProductGroupManufacturersWidget.php

示例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;
 }
开发者ID:silvercart,项目名称:silvercart,代码行数:14,代码来源:SilvercartCountry.php

示例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;
 }
开发者ID:MilesSummers,项目名称:silverstripe-newsmodule,代码行数:10,代码来源:News.php

示例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')));
 }
开发者ID:silvercart,项目名称:silvercart,代码行数:12,代码来源:SilvercartNumberRange.php

示例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')));
 }
开发者ID:silvercart,项目名称:silvercart,代码行数:12,代码来源:SilvercartQuantityUnit.php


注:本文中的DataObject::summaryFields方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。