Source of file ICSFeed.php
Size: 0,561 Bytes - Last Modified: 2021-12-23T10:56:10+00:00
/var/www/docs.ssmods.com/process/src/code/ICSFeed.php
12345678910111213141516171819202122232425262728293031 | <?php class ICSFeed extends DataObject { private static $db = array ( 'Title' => 'Varchar(100)', 'URL' => 'Varchar(255)' ); private static $has_one = array ( 'Calendar' => 'Calendar' ); public function getCMSFields() { $f = new FieldList ( new TextField('Title',_t('ICSFeed.TITLEOFFEED','Title of feed')), new TextField('URL',_t('ICSFeed.URLLINK','URL'),'http://') ); $this->extend('updateCMSFields', $f); return $f; } public function summaryFields() { return array ( 'Title' => _t('ICSFeed.TITLE','Title'), ); } } |