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


PHP DataObject::fieldLabels方法代码示例

本文整理汇总了PHP中DataObject::fieldLabels方法的典型用法代码示例。如果您正苦于以下问题:PHP DataObject::fieldLabels方法的具体用法?PHP DataObject::fieldLabels怎么用?PHP DataObject::fieldLabels使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DataObject的用法示例。


在下文中一共展示了DataObject::fieldLabels方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: fieldLabels

 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['Title'] = _t('PermissionRole.Title', 'Title');
     $labels['OnlyAdminCanApply'] = _t('PermissionRole.OnlyAdminCanApply', 'Only admin can apply', 'Checkbox to limit which user can apply this role');
     return $labels;
 }
开发者ID:miamollie,项目名称:echoAerial,代码行数:7,代码来源:PermissionRole.php

示例2: fieldLabels

 /**
  * Field labels for display in tables.
  *
  * @param boolean $includerelations A boolean value to indicate if the labels returned include relation fields
  *
  * @return array
  *
  * @author Sebastian Diel <sdiel@pixeltricks.de>
  * @since 07.08.2014
  */
 public function fieldLabels($includerelations = true)
 {
     $fields = array_merge(parent::fieldLabels($includerelations), array('CreatedNice' => _t('Silvercart.DATE'), 'Salutation' => _t('SilvercartAddress.SALUTATION'), 'FirstName' => _t('Member.FIRSTNAME'), 'Surname' => _t('Member.SURNAME'), 'Email' => _t('Member.EMAIL'), 'Street' => _t('SilvercartAddress.STREET'), 'StreetNumber' => _t('SilvercartAddress.STREETNUMBER'), 'Postcode' => _t('SilvercartAddress.POSTCODE'), 'City' => _t('SilvercartAddress.CITY'), 'SilvercartCountry' => _t('SilvercartCountry.SINGULARNAME'), 'Phone' => _t('SilvercartAddress.PHONE'), 'Message' => _t('SilvercartContactMessage.MESSAGE')));
     $this->extend('updateFieldLabels', $fields);
     SilvercartPlugin::call($this, 'fieldLabels', array($fields), true);
     return $fields;
 }
开发者ID:silvercart,项目名称:silvercart,代码行数:17,代码来源:SilvercartContactMessage.php

示例3: fieldLabels

 /**
  * 
  * @param bool $includerelations
  * @return array
  */
 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['Domain'] = _t('SubsiteDomain.DOMAIN', 'Domain');
     $labels['IsPrimary'] = _t('SubsiteDomain.IS_PRIMARY', 'Is Primary Domain');
     return $labels;
 }
开发者ID:hamaka,项目名称:silverstripe-subsites,代码行数:12,代码来源:SubsiteDomain.php

示例4: fieldLabels

 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     // ClassName is ignored in translation files by default
     $labels['ClassName'] = _t('Lightbox.db_ClassName', 'Type');
     return $labels;
 }
开发者ID:silverstripe-terraformers,项目名称:silverstripe-lightbox,代码行数:7,代码来源:Lightbox.php

示例5: fieldLabels

	function fieldLabels() {
		$labels = parent::fieldLabels();
		$labels['Email'] = _t('LoginAttempt.Email', 'Email Address');
		$labels['Status'] = _t('LoginAttempt.Status', 'Status');
		$labels['IP'] = _t('LoginAttempt.IP', 'IP Address');
		
		return $labels;
	}
开发者ID:neopba,项目名称:silverstripe-book,代码行数:8,代码来源:LoginAttempt.php

示例6: fieldLabels

 public function fieldLabels($includelrelations = true)
 {
     $labels = parent::fieldLabels($includelrelations);
     $labels["Title"] = _t('Contacts.FieldTitle', "Title");
     $labels["FullTitle"] = _t('Contacts.FieldTitle', "Title");
     $labels["ActiveRecipients.Count"] = _t('Contacts.Recipients', "Recipients");
     return $labels;
 }
开发者ID:helpfulrobot,项目名称:i-lateral-silverstripe-contacts,代码行数:8,代码来源:ContactList.php

示例7: fieldLabels

 /**
  *
  * @param boolean $includerelations a boolean value to indicate if the labels returned include relation fields
  * 
  */
 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['Email'] = _t('LoginAttempt.Email', 'Email Address');
     $labels['Status'] = _t('LoginAttempt.Status', 'Status');
     $labels['IP'] = _t('LoginAttempt.IP', 'IP Address');
     return $labels;
 }
开发者ID:normann,项目名称:sapphire,代码行数:13,代码来源:LoginAttempt.php

示例8: fieldLabels

 /**
  * Translate the form field labels for the CMS administration
  *
  * @param boolean $includerelations
  */
 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['Name'] = _t('Comment.NAME', 'Author Name');
     $labels['Comment'] = _t('Comment.COMMENT', 'Comment');
     $labels['IsSpam'] = _t('Comment.ISSPAM', 'Spam?');
     $labels['Moderated'] = _t('Comment.MODERATED', 'Moderated?');
     return $labels;
 }
开发者ID:roed,项目名称:silverstripe-comments,代码行数:14,代码来源:Comment.php

示例9: fieldLabels

 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['Title'] = _t('WorkflowInstance.TitleLabel', 'Title');
     $labels['WorkflowStatus'] = _t('WorkflowInstance.WorkflowStatusLabel', 'Workflow Status');
     $labels['TargetClass'] = _t('WorkflowInstance.TargetClassLabel', 'Target Class');
     $labels['TargetID'] = _t('WorkflowInstance.TargetIDLabel', 'Target');
     return $labels;
 }
开发者ID:Neumes,项目名称:advancedworkflow,代码行数:9,代码来源:WorkflowInstance.php

示例10: fieldLabels

 public function fieldLabels($includelrelations = true)
 {
     $labels = parent::fieldLabels($includelrelations);
     $labels["Status"] = _t('Newsletter.FieldStatus', "Status");
     $labels["Recipient.Email"] = _t('Newsletter.FieldEmail', "Email");
     $labels["RetryCount"] = _t('Newsletter.FieldRetryCount', "Retry Count");
     $labels["LastEdited"] = _t('Newsletter.FieldLastEdited', "Last Edited");
     return $labels;
 }
开发者ID:tractorcow,项目名称:silverstripe-newsletter,代码行数:9,代码来源:SendRecipientQueue.php

示例11: fieldLabels

 public function fieldLabels($includelrelations = true)
 {
     $labels = parent::fieldLabels($includelrelations);
     $labels["Subject"] = _t('Newsletter.FieldSubject', "Subject");
     $labels["Status"] = _t('Newsletter.FieldStatus', "Status");
     $labels["SendFrom"] = _t('Newsletter.FieldSendFrom', "From Address");
     $labels["ReplyTo"] = _t('Newsletter.FieldReplyTo', "Reply To Address");
     $labels["Content"] = _t('Newsletter.FieldContent', "Content");
     return $labels;
 }
开发者ID:helpfulrobot,项目名称:silverstripe-newsletter,代码行数:10,代码来源:Newsletter.php

示例12: fieldLabels

 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['BaseAction.Title'] = _t('WorkflowActionInstance.Title', 'Title');
     $labels['Comment'] = _t('WorkflowAction.CommentLabel', 'Comment');
     $labels['Member.Name'] = _t('WorkflowAction.Author', 'Author');
     $labels['Finished'] = _t('WorkflowAction.FinishedLabel', 'Finished');
     $labels['BaseAction.Title'] = _t('WorkflowAction.TITLE', 'Title');
     return $labels;
 }
开发者ID:Neumes,项目名称:advancedworkflow,代码行数:10,代码来源:WorkflowActionInstance.php

示例13: fieldLabels

 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['LinkID'] = _t('GoogleDirectionsMap.LINKID', 'Title');
     $labels['InfoText'] = _t('GoogleDirectionsMap.INFOTEXT', 'Info text');
     $labels['LatLng'] = _t('GoogleDirectionsMap.LATLNG', 'LatLng');
     $labels['Address'] = _t('GoogleDirectionsMap.ADDRESS', 'Address');
     $labels['ShowOnStartup'] = _t('GoogleDirectionsMap.SHOWONSTARTUP', 'Display on startup');
     $labels['Page'] = _t('GoogleDirectionsMap.PAGE', 'Page');
     return $labels;
 }
开发者ID:helpfulrobot,项目名称:martimiz-silverstripe-googledirections,代码行数:11,代码来源:GoogleDirectionsMap.php

示例14: fieldLabels

 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     foreach (self::$many_many_extraFields as $fields) {
         foreach ($fields as $field => $component) {
             $labels[$field] = _t(__CLASS__ . '.db_' . $field);
         }
     }
     foreach (array('TooltipContent', 'Href', 'Target') as $field) {
         $labels[$field] = _t('MapaelCountryPageExtension.db_' . $field);
     }
     return $labels;
 }
开发者ID:helpfulrobot,项目名称:plishkin-ss-mapael,代码行数:13,代码来源:MapaelCity.php

示例15: fieldLabels

 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['Salutation'] = _t('Newsletter.FieldSalutation', 'Salutation');
     $labels['FirstName'] = _t('Newsletter.FieldFirstName', 'FirstName');
     $labels['Surname'] = _t('Newsletter.FieldSurname', 'Surname');
     $labels['MiddleName'] = _t('Newsletter.FieldMiddleName', 'Middle Name');
     $labels['Mailinglists'] = _t('Newsletter.FieldMailinglists', 'Mailinglists');
     $labels['BouncedCount'] = _t('Newsletter.FieldBouncedCount', 'Bounced Count');
     $labels['Verified'] = _t('Newsletter.FieldVerified', 'Verified?');
     $labels['Blacklisted'] = _t('Newsletter.FieldBlacklisted', 'Blacklisted?');
     $labels['ReceivedCount'] = _t('Newsletter.FieldReceivedCount', 'Received Count');
     return $labels;
 }
开发者ID:helpfulrobot,项目名称:silverstripe-newsletter,代码行数:14,代码来源:Recipient.php


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