Source of file ShortListItem.php
Size: 0,623 Bytes - Last Modified: 2021-12-23T10:19:40+00:00
/var/www/docs.ssmods.com/process/src/code/models/ShortListItem.php
123456789101112131415161718192021222324252627282930 | <?php /* * @file ShortListItem.php * * An item that gets added to a shortlist. * * Any DataObject that is attached to a ShortListItem **MUST**: * * * Provide Link() & AbsoluteLink() functions. * * Provide a preview for the item with forTemplate() * **/ class ShortListItem extends DataObject { private static $db = array( 'ItemType' => 'Varchar(128)', 'ItemID' => 'Varchar(12)' ); private static $has_one = array( 'ShortList' => 'ShortList' ); public function getActualRecord() { return DataObject::get_by_id($this->ItemType, $this->ItemID); } } |