Source of file CleanContentSettings.php
Size: 0,993 Bytes - Last Modified: 2021-12-23T10:26:25+00:00
/var/www/docs.ssmods.com/process/src/code/extensions/CleanContentSettings.php
12345678910111213141516171819202122232425262728 | <?php /** * * * @author <marcus@silverstripe.com.au> * @license BSD License http://www.silverstripe.org/bsd-license */ class CleanContentSettings extends DataExtension { private static $db = array( 'DefaultTidy' => 'Boolean', // default base URL to cache for, regardless of curent base 'DefaultPurify' => 'Boolean', 'DefaultStripWord' => 'Boolean', 'DefaultFixUTF8' => 'Boolean', ); public function updateSettingsFields(\FieldList $fields) { $fields->addFieldsToTab('Root.ContentCleaning', array( new CheckboxField('DefaultTidy', 'Default value for "Tidy"'), new CheckboxField('DefaultFixUTF8', 'Default value for "Fix UTF8"setting'), new CheckboxField('DefaultPurify', 'Default value for "HTML purify" setting'), new CheckboxField('DefaultStripWord', 'Default value for "MS Word strip" setting'), )); } } |