本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}