/**
  * Checks if this task is enabled / disabled via the config setting
  */
 public function __construct()
 {
     parent::__construct();
     if ($this->config()->get('disabled') === true) {
         $this->enabled = false;
     }
 }
コード例 #2
0
 public function __construct()
 {
     if (!Director::is_cli()) {
         $this->eol = '<br>';
         $this->hr = '<hr>';
     } else {
         $this->eol = PHP_EOL;
         $this->hr = '--' . PHP_EOL;
     }
     parent::__construct();
 }
コード例 #3
0
 public function __construct()
 {
     parent::__construct();
     $this->modulePath = BASE_PATH . '/omnipay-ui';
 }
コード例 #4
0
 public function __construct($types = array())
 {
     parent::__construct();
     $this->types = $types;
 }
コード例 #5
0
 public function __construct()
 {
     $this->conf = $this->getConf();
     $this->facebook = $this->getFacebook();
     parent::__construct();
 }
コード例 #6
0
 public function __construct()
 {
     $this->conf = $this->getConf();
     $this->tmhOAuth = $this->getTmhOauth();
     parent::__construct();
 }
コード例 #7
0
 public function __construct()
 {
     $this->conf = $this->getConf();
     parent::__construct();
 }
コード例 #8
0
 /**
  * DataObjectAnnotatorTask constructor.
  * Setup default values. In this case title and description.
  */
 public function __construct()
 {
     parent::__construct();
     $this->title = 'DataObject annotations for specific DataObjects, Extensions or Controllers';
     $this->description = "DataObject Annotator annotates your DO's if possible, helping you write better code.<br />" . 'Usage: add the module or DataObject as parameter to the URL, e.g. ?module=mysite .';
 }
コード例 #9
0
 public function __construct()
 {
     $this->title = 'Flush Varnish and SilverStripe caches.';
     $this->description = 'Flush the Varnish and SilverStripe caches on a (Twisted Bytes) varnish-cached hosting.';
     parent::__construct();
 }
コード例 #10
0
 public function __construct()
 {
     $this->conf = static::get_conf();
     $this->instagram = static::get_instagram();
     parent::__construct();
 }