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


PHP AbstractPage::listDisplayElements方法代码示例

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


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

示例1: listDisplayElements

 /**
  * Recommenders Pages include all child page elements of the recommendation
  * 
  * @return array
  */
 public function listDisplayElements()
 {
     $elements = parent::listDisplayElements();
     $weight = count($elements);
     foreach ($this->_applicationPage->getPage()->getChildren() as $child) {
         foreach ($child->getApplicationPageJazzeePage()->listDisplayElements() as $displayElement) {
             if ($displayElement->getType() != 'page' and !in_array($displayElement->getName(), array('attachment', 'answerPublicStatus', 'answerPrivateStatus'))) {
                 $elements[] = new \Jazzee\Display\Element($displayElement->getType(), $this->_applicationPage->getTitle() . ' ' . $displayElement->getTitle(), $weight++, $displayElement->getName(), $displayElement->getPageId());
             }
         }
     }
     $elements[] = new \Jazzee\Display\Element('page', 'Received Recommendations', $weight++, 'lorReceived', $this->_applicationPage->getPage()->getId());
     return $elements;
 }
开发者ID:Jazzee,项目名称:Jazzee,代码行数:19,代码来源:Recommenders.php

示例2: listDisplayElements

 /**
  * ETS Pages include all the score information
  * 
  * @return array
  */
 public function listDisplayElements()
 {
     $elements = parent::listDisplayElements();
     $items = array('greRegistrationNumber' => 'GRE Registration Number', 'greDepartmentName' => 'GRE Department Name', 'greTestDate' => 'GRE Test Date', 'greTestName' => 'GRE Test Name', 'greScore1' => 'GRE Score 1', 'greScore2' => 'GRE Score 2', 'greScore3' => 'GRE Score 3', 'greScore4' => 'GRE Score 4', 'toeflRegistrationNumber' => 'TOEFL Registration Number', 'toeflNativeCountry' => 'TOEFL Native Country', 'toeflNativeLanguage' => 'TOEFL Native Language', 'toeflTestDate' => 'TOEFL Test Date', 'toeflTestType' => 'TOEFL Test Type', 'toeflListening' => 'TOEFL Listening', 'toeflWriting' => 'TOEFL Writing', 'toeflReading' => 'TOEFL Reading', 'toeflEssay' => 'TOEFL Essay', 'toeflTotal' => 'TOEFL Total');
     $weight = count($elements);
     foreach ($items as $name => $title) {
         $elements[] = new \Jazzee\Display\Element('page', $title, $weight++, $name, $this->_applicationPage->getPage()->getId());
     }
     return $elements;
 }
开发者ID:Jazzee,项目名称:Jazzee,代码行数:15,代码来源:ETSMatch.php


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