/**
  * put your comment there...
  * 
  * @param mixed $tpl
  */
 protected function displayAction($tpl = null)
 {
     // Prepare inputs
     $this->model->inputs['blockId'] = $_REQUEST['blockId'];
     // Display view!
     parent::displayAction();
 }
Ejemplo n.º 2
0
 /**
  * put your comment there...
  * 
  */
 protected function getLicenseFileAction()
 {
     // Get package model.
     $model =& $this->model;
     // Set action parameter.
     $model->setParam('file', 'license');
     // Load view.
     parent::displayAction();
 }
 /**
  * put your comment there...
  * 
  */
 protected function displayAction()
 {
     // Set default filters.
     if (!isset($_REQUEST['filter_states'])) {
         $_REQUEST['filter_states'] = 'published';
     }
     // Save all filters!
     if ($_SERVER['REQUEST_METHOD'] == 'POST') {
         $filters = array_intersect_key($_REQUEST, array_flip(explode(',', $_REQUEST['allFiltersName'])));
         update_user_option(get_current_user_id(), self::SESSIONED_FILTERS, $filters);
     } else {
         // Load sessioned filter from database options table!
         $filters = (array) get_user_option(self::SESSIONED_FILTERS, get_current_user_id());
         $_REQUEST = array_merge($_REQUEST, $filters);
     }
     // Push inputs into the model!
     $this->model->inputs = $_REQUEST;
     // Display view.
     parent::displayAction();
 }
Ejemplo n.º 4
0
 /**
  * put your comment there...
  * 
  */
 protected function installAction()
 {
     // Initialize.
     $model =& $this->model;
     // Unzip and Parse package file when uploaded.
     if ($_SERVER['REQUEST_METHOD'] == 'POST') {
         // Get uploaded file.
         $file = $_FILES['fileToUpload'];
         try {
             // Parse/Unzip+Parse definition the package file.
             $package = $model->parse($file['name'], $file['tmp_name']);
             // Install package
             $packageId = $model->install($package);
         } catch (Exception $exception) {
             $this->model->setState('error', array('msg' => $exception->getMessage()));
         }
     }
     // Display uploader!
     parent::displayAction();
 }
Ejemplo n.º 5
0
 /**
  * Display Activation form!
  * 
  */
 protected function activationFormViewAction()
 {
     // Display activation for for the requested component!
     parent::displayAction();
 }
Ejemplo n.º 6
0
 /**
  * put your comment there...
  * 
  */
 protected function infoAction()
 {
     $this->model->inputs['id'] = (int) $_REQUEST['id'];
     // Display the view.
     parent::displayAction();
 }