Source of file TransferTypes.php
Size: 0,624 Bytes - Last Modified: 2021-12-23T10:02:49+00:00
/var/www/docs.ssmods.com/process/src/code/dataobjects/TransferTypes.php
12345678910111213141516171819202122232425262728293031 | <?php class TransferTypes extends DataObject{ private static $db = array( 'Name' => 'Varchar', ); private static $has_one = array( 'Resort' => 'ResortPage', 'Safari' => 'SafariPage', 'CityHotel' => 'CityHotelPage' ); private static $singular_name = "Transfer Type"; private static $plural_name = "Transfer Types"; public function getCMSFields(){ $fields = parent::getCMSFields(); $fields->removeByName("ResortID"); $fields->removeByName("SafariID"); $fields->removeByName("CityHotelID"); $fields->dataFieldByName('Name')->SetTitle('Transfer Type Name'); return $fields; } } ?> |