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


PHP Page::fieldLabels方法代码示例

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


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

示例1: fieldLabels

 /**
  * @param boolean $includerelations A boolean value to indicate if the labels returned include relation fields
  * @return array|string
  */
 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['Date'] = _t('DateUpdatePage.DateLabel', 'Date');
     $labels['Abstract'] = _t('DateUpdatePage.AbstractTextFieldLabel', 'Abstract');
     return $labels;
 }
开发者ID:silverstripe-scienceninjas,项目名称:datedupdates,代码行数:11,代码来源:DatedUpdatePage.php

示例2: fieldLabels

 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['DataClass'] = _t('RegistryPage.DataClassFieldLabel', "Data Class");
     $labels['PageLength'] = _t('RegistryPage.PageLengthFieldLabel', "Results page length");
     return $labels;
 }
开发者ID:helpfulrobot,项目名称:silverstripe-registry,代码行数:7,代码来源:RegistryPage.php

示例3: fieldLabels

 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['EntriesPerPage'] = _t('GuestbookPage.EntriesPerPage', "Entries per page");
     $labels['EnableEmoticons'] = _t('GuestbookPage.EnableEmoticons', "Enable emoticons");
     $labels['ProtectEmails'] = _t('GuestbookPage.ProtectEmails', "Protect email addresses");
     $labels['UseSpamProtection'] = _t('GuestbookPage.UseSpamProtection', "Use spam protection");
     $labels['FloodLimit'] = _t('GuestbookPage.FloodLimit', "Flood protection: Seconds between posts");
     return $labels;
 }
开发者ID:helpfulrobot,项目名称:cheesesucker-guestbook,代码行数:10,代码来源:GuestbookPage.php

示例4: fieldLabels

 function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels();
     $labels['Title'] = _t('ProductPage.TitleLabel', 'Name');
     $labels['Code'] = _t('ProductPage.CodeLabel', "Code");
     $labels['Price.Nice'] = _t('ProductPage.PriceLabel', 'Price');
     $labels['Featured.Nice'] = _t('ProductPage.NiceLabel', 'Featured');
     $labels['Available.Nice'] = _t('ProductPage.AvailableLabel', 'Available');
     $labels['Category.ID'] = _t('ProductPage.IDLabel', 'Category');
     $labels['Category.Title'] = _t('ProductPage.CategoryTitleLabel', 'Category');
     return $labels;
 }
开发者ID:dynamic,项目名称:foxystripe,代码行数:12,代码来源:ProductPage.php

示例5: fieldLabels

 public function fieldLabels($includeRelations = true)
 {
     $labels = parent::fieldLabels($includeRelations);
     $labels['NewsTab'] = _t('NewsHolder.NEWSTAB', 'News');
     $labels['RSSTab'] = _t('NewsHolder.RSSTAB', 'RSS');
     $labels['NewsPerPage'] = _t('NewsHolder.NEWSPERPAGE', 'News per page');
     $labels['RSSFromTopmostNewsHolder'] = _t('NewsHolder.RSSFROMTOPMOSTNEWSHOLDER', 'Generate RSS using the top news holder');
     $labels['RSSLimit'] = _t('NewsHolder.RSSLIMIT', 'Number of news in the RSS feed');
     $labels['RSSTitle'] = _t('NewsHolder.RSSTITLE', 'RSS feed title');
     $labels['RSSDescription'] = _t('NewsHolder.RSSDESCRIPTION', 'RSS feed description');
     if ($includeRelations) {
     }
     return $labels;
 }
开发者ID:redema,项目名称:silverstripe-news,代码行数:14,代码来源:NewsHolder.php

示例6: fieldLabels

 public function fieldLabels($includeRelations = true)
 {
     $labels = parent::fieldLabels($includeRelations);
     $labels['SummaryTab'] = _t('NewsPage.SUMMARYTAB', 'Summmary');
     $labels['Datetime'] = _t('NewsPage.DATETIME', 'News date, news pages are sorted on this date');
     $labels['Byline'] = _t('NewsPage.BYLINE', 'Byline');
     $labels['Weight'] = _t('NewsPage.WEIGHT', 'Weight');
     $labels['SummaryTitle'] = _t('NewsPage.SUMMARYTITLE', 'SummaryTitle');
     $labels['SummaryContent'] = _t('NewsPage.SUMMARYCONTENT', 'SummaryContent');
     $labels['RedirectLink'] = _t('NewsPage.REDIRECTLINK', 'Redirect link');
     if ($includeRelations) {
         $labels['Thumbnail'] = _t('NewsPage.THUMBNAIL', 'Thumbnail');
     }
     return $labels;
 }
开发者ID:redema,项目名称:silverstripe-news,代码行数:15,代码来源:NewsPage.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["TitleOfFile"] = _t("EmailDownloadPage.TITLEOFFILE", "Title of file");
     $labels["LinkToThirdPartyDownload"] = _t("EmailDownloadPage.LINKTOTHIRDPARTYDOWNLOAD", "Link to third-party download file / page");
     $labels["ValidityInDays"] = _t("EmailDownloadPage.VALIDITYINDAYS", "Validity in days (you can use 0.5 for 12 hours, etc...)");
     $labels["DownloadFile"] = $labels["DownloadFileID"] = _t("EmailDownloadPage.DOWNLOADFILE", "Select file to download");
     $labels["ThankYouForRequesting"] = _t("EmailDownloadPage.THANKYOUFORREQUESTING", "Thank you for requesting message");
     $labels["ThankYouLink"] = _t("EmailDownloadPage.THANKYOULINK", "Thank you link");
     $labels["EmailSubject"] = _t("EmailDownloadPage.EMAILSUBJECT", "E-mail Subject");
     $labels["AllowReRequest"] = _t("EmailDownloadPage.ALLOWREREQUEST", "Allow the user to make more than one request for the file (not strictly enforced) - change and reload to see more options");
     $labels["AllowReRequestLabel"] = _t("EmailDownloadPage.ALLOWREREQUESTLABEL", "Label for requesting another copy");
     $labels["DeclineReRequestLabel"] = _t("EmailDownloadPage.DECLINEREREQUESTLABEL", "Explanation of why the user can not request another copy");
     $labels["NoAccessContent"] = _t("EmailDownloadPage.NOACCESSCONTENT", "Content shown when the user does not have access");
     $labels["EmailsSent"] = _t("EmailDownloadPage.EMAILSSENT", "Downloads requested");
     $labels["CopyOfAllEmailsToAdmin"] = _t("EmailDownloadPage.COPYOFALLEMAILSTOADMIN", "Send a copy of all e-mails to the website administrator ");
     return $labels;
 }
开发者ID:helpfulrobot,项目名称:sunnysideup-downloadtoemail,代码行数:23,代码来源:EmailDownloadPage.php

示例8: fieldLabels

 /**
  * @param boolean $includerelations a boolean value to indicate if the labels returned include relation fields
  * 
  * @return array
  */
 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['ErrorCode'] = _t('ErrorPage.CODE', "Error code");
     return $labels;
 }
开发者ID:riddler7,项目名称:silverstripe-cms,代码行数:11,代码来源:ErrorPage.php

示例9: fieldLabels

 /**
  * Fix grid field heading displaying "page name"
  */
 public function fieldLabels($includerelations = true)
 {
     $labels = parent::fieldLabels($includerelations);
     $labels['Title'] = "Title";
     return $labels;
 }
开发者ID:PlatoCreative,项目名称:silverstripe-shop,代码行数:9,代码来源:Product.php

示例10: fieldLabels

	function fieldLabels() {
		$labels = parent::fieldLabels();
		$labels['ErrorCode'] = _t('ErrorPage.CODE', "Error code");
		
		return $labels;
	}
开发者ID:neopba,项目名称:silverstripe-book,代码行数:6,代码来源:ErrorPage.php

示例11: fieldLabels

 /**
  * @return array
  */
 public function fieldLabels($includerelations = true)
 {
     return array_merge(parent::fieldLabels($includerelations), array('Sitemap' => _t('SitemapPage.SITEMAP', 'Sitemap'), 'PagesToDisplay' => _t('SitemapPage.PAGESTOSHOW', 'Pages To Show In The Sitemap'), 'AllPages' => _t('SitemapPage.ALLPAGES', 'Display all pages which are displayed in the menu.'), 'ChildrenOf' => _t('SitemapPage.CHILDRENOF', 'Display the children of a specific page.'), 'Selected' => _t('SitemapPage.SELECTED', 'Display only the selected pages.')));
 }
开发者ID:talbet,项目名称:silverstripe-sitemap,代码行数:7,代码来源:SitemapPage.php

示例12: fieldLabels

 /**
  * Sets the label for BlogPost.Title to 'Post Title' (Rather than 'Page name').
  *
  * @param bool $includeRelations
  *
  * @return array
  */
 public function fieldLabels($includeRelations = true)
 {
     $labels = parent::fieldLabels($includeRelations);
     $labels['Title'] = _t('BlogPost.PageTitleLabel', 'Post Title');
     return $labels;
 }
开发者ID:javabrett,项目名称:silverstripe-blog,代码行数:13,代码来源:BlogPost.php

示例13: 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 Sascha Koehler <skoehler@pixeltricks.de>, Sebastian Diel <sdiel@pixeltricks.de>
  * @since 05.10.2012
  */
 public function fieldLabels($includerelations = true)
 {
     $fieldLabels = array_merge(parent::fieldLabels($includerelations), array('productsPerPage' => _t('SilvercartProductGroupPage.PRODUCTSPERPAGE'), 'productGroupsPerPage' => _t('SilvercartProductGroupPage.PRODUCTGROUPSPERPAGE'), 'useContentFromParent' => _t('SilvercartProductGroupPage.USE_CONTENT_FROM_PARENT'), 'DefaultGroupView' => _t('SilvercartProductGroupPage.DEFAULTGROUPVIEW'), 'UseOnlyDefaultGroupView' => _t('SilvercartProductGroupPage.USEONLYDEFAULTGROUPVIEW'), 'DefaultGroupHolderView' => _t('SilvercartProductGroupPage.DEFAULTGROUPHOLDERVIEW'), 'UseOnlyDefaultGroupHolderView' => _t('SilvercartProductGroupPage.USEONLYDEFAULTGROUPHOLDERVIEW'), 'DoNotShowProducts' => _t('SilvercartProductGroupPage.DONOTSHOWPRODUCTS'), 'DisplaySettings' => _t('SilvercartProductGroupPage.DisplaySettings')));
     $this->extend('updateFieldLabels', $fieldLabels);
     return $fieldLabels;
 }
开发者ID:silvercart,项目名称:silvercart,代码行数:16,代码来源:SilvercartProductGroupPage.php

示例14: fieldLabels

 /**
  * fieldLabels method
  * 
  * @param bool $includerelations A boolean value to indicate if the labels returned include relation fields
  * 
  * @return array 
  * 
  * @author Patrick Schneider <pschneider@pixeltricks.de>
  * @since 12.07.2012
  */
 public function fieldLabels($includerelations = true)
 {
     $fieldLabels = array_merge(parent::fieldLabels($includerelations), array('SilvercartFiles' => _t('SilvercartFile.PLURALNAME')));
     $this->extend('updateFieldLabels', $fieldLabels);
     return $fieldLabels;
 }
开发者ID:silvercart,项目名称:silvercart,代码行数:16,代码来源:SilvercartDownloadPage.php

示例15: 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 06.06.2012
  */
 public function fieldLabels($includerelations = true)
 {
     $fieldLabels = array_merge(parent::fieldLabels($includerelations), array('productGroupsPerPage' => _t('SilvercartProductGroupPage.PRODUCTGROUPSPERPAGE'), 'DefaultGroupHolderView' => _t('SilvercartProductGroupPage.DEFAULTGROUPHOLDERVIEW'), 'UseOnlyDefaultGroupHolderView' => _t('SilvercartProductGroupPage.USEONLYDEFAULTGROUPHOLDERVIEW'), 'DefaultGroupView' => _t('SilvercartProductGroupPage.DEFAULTGROUPVIEW'), 'UseOnlyDefaultGroupView' => _t('SilvercartProductGroupPage.USEONLYDEFAULTGROUPVIEW'), 'DisplaySettings' => _t('SilvercartProductGroupPage.DisplaySettings'), 'RedirectionSettings' => _t('SilvercartProductGroupHolder.RedirectionSettings'), 'RedirectToProductGroup' => _t('SilvercartProductGroupHolder.RedirectToProductGroup'), 'LinkTo' => _t('SilvercartProductGroupHolder.LinkTo'), 'Yes' => _t('Silvercart.YES'), 'No' => _t('Silvercart.NO')));
     $this->extend('updateFieldLabels', $fieldLabels);
     return $fieldLabels;
 }
开发者ID:silvercart,项目名称:silvercart,代码行数:16,代码来源:SilvercartProductGroupHolder.php


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