本文整理匯總了PHP中Concrete\Core\Page\Page::getCollectionDescription方法的典型用法代碼示例。如果您正苦於以下問題:PHP Page::getCollectionDescription方法的具體用法?PHP Page::getCollectionDescription怎麽用?PHP Page::getCollectionDescription使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Concrete\Core\Page\Page
的用法示例。
在下文中一共展示了Page::getCollectionDescription方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getPageFeedContent
protected function getPageFeedContent(Page $p)
{
$content = false;
switch ($this->pfContentToDisplay) {
case 'S':
$content = $p->getCollectionDescription();
break;
case 'A':
$a = new \Area($this->getAreaHandleToDisplay());
$blocks = $a->getAreaBlocksArray($p);
$r = Request::getInstance();
$r->setCurrentPage($p);
ob_start();
foreach ($blocks as $b) {
$bv = new BlockView($b);
$bv->render('view');
}
$content = ob_get_contents();
ob_end_clean();
break;
}
$f = $p->getAttribute('thumbnail');
if (is_object($f)) {
$content = '<p><img src="' . $f->getURL() . '" /></p>' . $content;
}
return $content;
}
示例2: getPageFeedContent
protected function getPageFeedContent(Page $p)
{
switch ($this->pfContentToDisplay) {
case 'S':
return $p->getCollectionDescription();
case 'A':
$a = new \Area($this->getAreaHandleToDisplay());
$blocks = $a->getAreaBlocksArray($p);
$r = Request::getInstance();
$r->setCurrentPage($p);
ob_start();
foreach ($blocks as $b) {
$bv = new BlockView($b);
$bv->render('view');
}
$content = ob_get_contents();
ob_end_clean();
return $content;
}
}
示例3: getCollectionDescription
/**
* Get the description of a page.
*
* @return string
*/
public function getCollectionDescription()
{
return parent::getCollectionDescription();
}