Source of file SendThis_Bounce.php
Size: 0,849 Bytes - Last Modified: 2021-12-23T10:05:12+00:00
/var/www/docs.ssmods.com/process/src/code/logs/SendThis_Bounce.php
123456789101112131415161718192021222324252627282930313233343536373839404142 | <?php /** * Milkyway Multimedia * SendThis_Bounce.php * * @package milkyway-multimedia/ss-send-this * @author Mellisa Hankins <mell@milkywaymultimedia.com.au> */ class SendThis_Bounce extends DataObject { private static $db = [ 'Email' => 'Text', 'Message' => 'Text', ]; private static $has_one = [ 'Log' => 'SendThis_Log', ]; private static $singular_name = 'Bounced Email'; public function getTitle() { return $this->Email; } public function canView($member = null) { $method = __FUNCTION__; $this->beforeExtending(__FUNCTION__, function ($member) use ($method) { if (Permission::check('CAN_VIEW_SEND_LOGS', 'any', $member)) { return true; } }); return parent::canView($member); } } |