Beispiel #1
0
 /**
  * Constructor
  *
  * @param 	object 	An optional KConfig object with configuration options.
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     // Set the model identifier
     if (!empty($config->model)) {
         $this->setModel($config->model);
     }
     //Register the load and save request function to make the request persistent
     if ($config->persistent) {
         $this->registerCallback('before.browse', array($this, 'loadState'));
         $this->registerCallback('after.browse', array($this, 'saveState'));
     }
 }
 /**
  * Constructor
  *
  * @param 	object 	An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     if (KRequest::get('get.action', 'cmd') == 'update') {
         $this->update();
     }
     if (KRequest::get('get.action', 'cmd') == 'updatespurss') {
         $this->execute('updatespurss');
     }
     if (KRequest::get('get.action', 'cmd') == 'checkversion') {
         $this->execute('checkversion');
     }
     if (KRequest::get('get.action', 'cmd') == 'checkversionspurss') {
         $this->execute('checkversionspurss');
     }
 }
Beispiel #3
0
 /**
  * Constructor
  *
  * @param   KObjectConfig $config Configuration options
  */
 public function __construct(KObjectConfig $config)
 {
     parent::__construct($config);
     // Set the model identifier
     $this->_model = $config->model;
 }
Beispiel #4
0
 /**
  * Constructor
  *
  * @param   object  An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     //Enqueue the authorization command
     $this->getCommandChain()->enqueue(KFactory::get('admin::com.default.command.authorize'));
 }