Source of file BlockPage.php
Size: 1,910 Bytes - Last Modified: 2021-12-23T10:48:12+00:00
/var/www/docs.ssmods.com/process/src/src/Page/BlockPage.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 | <?php namespace Syanaputra\Clio\Page; use Page; use SilverStripe\CMS\Model\SiteTree; use SilverStripe\Core\Injector\Injector; use SilverStripe\Forms\FieldList; use SilverStripe\ORM\DataObject; use SilverStripe\ORM\DB; use SilverStripe\Security\Permission; use SilverStripe\Security\PermissionProvider; use SilverStripe\Security\Security; use SilverStripe\View\TemplateGlobalProvider; use Syanaputra\Clio\Admin\CMSFields\HeaderCMSFieldsModifier; /** * Class BlockPage * * @package Syanaputra\Clio\Page */ class BlockPage extends Page { /** * @var null */ private static $_cached_settings = null; /** * @var array */ private static $db = []; /** * @var array */ private static $has_one = []; /** * @var array */ private static $many_many = []; /** * @var array */ private static $many_many_extraFields = []; /** * @var string */ private static $singular_name = 'Block Page'; /** * @var string */ private static $plural_name = 'Block Pages'; /** * @var string */ private static $table_name = 'BlockPage'; /** * @var string */ private static $description = 'Clio Default Page with lots of customised blocks'; /** * @var array */ private static $indexes = []; /** * @var array */ private static $searchable_fields = []; /** * @var array */ private static $extensions = []; /** * @var array */ private static $defaults = []; /** * Update the CMS Fields * * @return \SilverStripe\Forms\FieldList */ // public function getCMSFields() // { //// $this->beforeUpdateCMSFields(function (FieldList $fields) { //// $fields->removeByName(['Content']); //// }); // // return parent::getCMSFields(); // } } |