Source of file BetterButton_Send.php
Size: 0,635 Bytes - Last Modified: 2021-12-23T10:26:32+00:00
/var/www/docs.ssmods.com/process/src/code/admin/BetterButton_Send.php
1234567891011121314151617181920212223242526272829303132 | <?php if (class_exists('BetterButton')) { /** * * * @author <marcus@symbiote.com.au> * @license BSD License http://www.silverstripe.org/bsd-license */ class BetterButton_Send extends BetterButton { /** * Builds the button */ public function __construct() { return parent::__construct('doSend', _t('Push.DO_SEND', 'Send')); } /** * Determines if the button should display * @return boolean */ public function shouldDisplay() { $record = $this->gridFieldRequest->record; return $record->canEdit() && $record instanceof PushNotification; } } } |