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