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