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


PHP DataObject::fieldLabels方法代码示例

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


在下文中一共展示了DataObject::fieldLabels方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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:SpiritLevel,项目名称:silverstripe-framework,代码行数:7,代码来源:PermissionRole.php

示例2: fieldLabels

 /**
  * @param bool $includerelations Indicate if the labels returned include relation fields
  * @return array
  */
 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:jacobbuck,项目名称:silverstripe-framework,代码行数:12,代码来源:LoginAttempt.php

示例3: fieldLabels

 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['Name'] = _t('ChangeSet.NAME', 'Name');
     $labels['State'] = _t('ChangeSet.STATE', 'State');
     return $labels;
 }
开发者ID:SpiritLevel,项目名称:silverstripe-framework,代码行数:7,代码来源:ChangeSet.php

示例4: 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['MyProperty'] = _t('i18nTest_DataObject.MyProperty', 'My Property');
     return $labels;
 }
开发者ID:jacobbuck,项目名称:silverstripe-framework,代码行数:11,代码来源:i18nTest.php

示例5: fieldLabels

 /**
  * @param bool $includerelations Indicate if the labels returned include relation fields
  * @return array
  */
 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['FirstName'] = _t('Member.FIRSTNAME', 'First Name');
     $labels['Surname'] = _t('Member.SURNAME', 'Surname');
     $labels['Email'] = _t('Member.EMAIL', 'Email');
     $labels['Password'] = _t('Member.db_Password', 'Password');
     $labels['PasswordExpiry'] = _t('Member.db_PasswordExpiry', 'Password Expiry Date', 'Password expiry date');
     $labels['LockedOutUntil'] = _t('Member.db_LockedOutUntil', 'Locked out until', 'Security related date');
     $labels['Locale'] = _t('Member.db_Locale', 'Interface Locale');
     $labels['DateFormat'] = _t('Member.DATEFORMAT', 'Date format');
     $labels['TimeFormat'] = _t('Member.TIMEFORMAT', 'Time format');
     if ($includerelations) {
         $labels['Groups'] = _t('Member.belongs_many_many_Groups', 'Groups', 'Security Groups this member belongs to');
     }
     return $labels;
 }
开发者ID:jacobbuck,项目名称:silverstripe-framework,代码行数:21,代码来源:Member.php

示例6: fieldLabels

 /**
  * @param bool $includerelations Indicate if the labels returned include relation fields
  * @return array
  */
 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['Title'] = _t('SecurityAdmin.GROUPNAME', 'Group name');
     $labels['Description'] = _t('Group.Description', 'Description');
     $labels['Code'] = _t('Group.Code', 'Group Code', 'Programmatical code identifying a group');
     $labels['Locked'] = _t('Group.Locked', 'Locked?', 'Group is locked in the security administration area');
     $labels['Sort'] = _t('Group.Sort', 'Sort Order');
     if ($includerelations) {
         $labels['Parent'] = _t('Group.Parent', 'Parent Group', 'One group has one parent group');
         $labels['Permissions'] = _t('Group.has_many_Permissions', 'Permissions', 'One group has many permissions');
         $labels['Members'] = _t('Group.many_many_Members', 'Members', 'One group has many members');
     }
     return $labels;
 }
开发者ID:SpiritLevel,项目名称:silverstripe-framework,代码行数:19,代码来源:Group.php


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