Source of file PageBuilder_Value_Block_Text_ContentElement.php
Size: 0,557 Bytes - Last Modified: 2021-12-23T11:00:18+00:00
/var/www/docs.ssmods.com/process/src/code/PageBuilder_Value_Block_Text_ContentElement.php
123456789101112131415161718192021222324 | <?php /** * Class PageBuilder_Value_Block_Text_ContentElement * * @property string $Content */ class PageBuilder_Value_Block_Text_ContentElement extends PageBuilder_ContentElement { private static $db = [ 'Content' => 'HTMLText', ]; public function getPageBuilderPopupFields() { $return = parent::getPageBuilderPopupFields(); $return->push(new HtmlEditorField('Content', $this->fieldLabel('Content'))); return $return; } public function getTitle() { return $this->Content ? $this->obj('Content')->Summary() : parent::getTitle(); } } |