Esempio n. 1
0
 public function ajaxResponse(\AjaxResponseObject $ajaxResponseObject)
 {
     $ajaxResponseObject->setStatus("ok");
     $current_container = \ArtefactModel::getArtefactsContainer();
     $ajaxUploader = new \Widgets\AjaxUploader();
     //$ajaxUploader->setBackend(PATH_URL . "explorer/");
     $ajaxUploader->setEnvId($current_container->get_id());
     $ajaxResponseObject->addWidget($ajaxUploader);
     return $ajaxResponseObject;
 }
Esempio n. 2
0
 public function ajaxResponse(\AjaxResponseObject $ajaxResponseObject)
 {
     $ajaxResponseObject->setStatus("ok");
     $ajaxUploader = new \Widgets\AjaxUploader();
     $ajaxUploader->setSizeLimit(return_bytes(ini_get('post_max_size')));
     $ajaxUploader->setBackend(PATH_URL . "portfolio/");
     $ajaxUploader->setEnvId($this->id);
     $ajaxUploader->setCommand("UploadImport");
     $ajaxUploader->setNamespace("Portfolio");
     $ajaxResponseObject->addWidget($ajaxUploader);
     return $ajaxResponseObject;
 }