示例#1
0
 /**
  * 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;
 }
示例#2
0
 /**
  * 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;
 }