Exemple #1
0
 public function init($config)
 {
     $this->instantiatedItems = $this->loadItems($this->items);
     return parent::init($config);
 }
Exemple #2
0
 /**
  * It will take care of upload and delete requests;
  * @param array $config
  * @return bool
  * @throws \Exception
  */
 protected function init($config)
 {
     parent::init($config);
     if (!$this->dataUrl) {
         $this->dataUrl = WebApp::get()->request()->getCurrentURL();
         // if dataUrl is not set then current URL will be used;
     }
     if ($this->handleRequest) {
         $this->_handle();
         die;
     }
     return true;
 }