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