Source of file QuoteSection.php
Size: 0,923 Bytes - Last Modified: 2021-12-23T10:10:42+00:00
/var/www/docs.ssmods.com/process/src/code/sections/QuoteSection.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | <?php /** * * * @package silverstripe * @subpackage sections */ class QuoteSection extends Section { private static $title = "Quote"; private static $description = ""; /** * Database fields * @var array */ private static $db = array( 'Quote' => 'Text', 'Citation' => 'Text' ); /** * CMS Fields * @return FieldList */ public function getCMSFields() { $fields = parent::getCMSFields(); $fields->addFieldsToTab( "Root.Main", array( TextareaField::create( 'Quote' ), TextareaField::create( 'Citation' ) ->setRows(1) ->setDescription('Who cited/quoted this?') ) ); $this->extend('updateCMSFields', $fields); return $fields; } } |