當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。