Source of file PageBuilder_Value_Block_PageTeaser_ContentElement.php
Size: 0,720 Bytes - Last Modified: 2021-12-23T11:00:18+00:00
/var/www/docs.ssmods.com/process/src/code/PageBuilder_Value_Block_PageTeaser_ContentElement.php
123456789101112131415161718192021222324252627282930313233 | <?php /** * Class PageBuilder_Value_Block_PageTeaser_ContentElement * * @property int $PageID * @method Page Page() */ class PageBuilder_Value_Block_PageTeaser_ContentElement extends PageBuilder_ContentElement { private static $has_one = [ 'Page' => 'Page', ]; public function getPageBuilderPopupFields() { $return = parent::getPageBuilderPopupFields(); $return->push(new TreeDropdownField('PageID', '', 'Page')); return $return; } public function getTitle() { $p = $this->Page(); return $p && $p->exists() ? $p->getTitle() : parent::getTitle(); } public function PageBuilderPreview() { $p = $this->Page(); return $p && $p->exists() ? $p->getBreadcrumbs() : $this->getTitle(); } } |