Ejemplo n.º 1
0
 /**
  * put your comment there...
  * 
  * @param mixed $tpl
  */
 public function display($tpl = null)
 {
     $this->component = $this->getModel('setup')->getCJTComponentData();
     $this->securityToken = cssJSToolbox::getSecurityToken();
     // Display view.
     echo $this->getTemplate($tpl);
 }
Ejemplo n.º 2
0
 /**
  * put your comment there...
  * 
  * @param mixed $tpl
  */
 public function display($tpl = null)
 {
     // Initialize.
     $model = $this->getModel('packages');
     // Cache view vars.
     $this->itemsTotal = $model->getItemsTotal();
     $this->itemsPerPage = $model->getItemsPerPage();
     $this->items = $model->getItems();
     $this->securityToken = cssJSToolbox::getSecurityToken();
     // Display view.
     echo $this->getTemplate($tpl);
 }
Ejemplo n.º 3
0
 /**
  * put your comment there...
  * 
  * @param mixed $tpl
  */
 public function display($tpl = null)
 {
     // Initialize.
     $model =& $this->model;
     // Set vars!
     $this->securityToken = cssJSToolbox::getSecurityToken();
     $this->component = $this->getRequestParameter('component');
     $this->cjtWebSite = cssJSToolbox::getCJTWebSiteURL();
     $this->licenseTypes = $model->getExtensionProductTypes($this->component);
     $this->license = $model->getStateStruct($this->licenseTypes, 'license');
     // Display view.
     echo $this->getTemplate($tpl);
 }
Ejemplo n.º 4
0
 /**
  * put your comment there...
  * 
  * @param mixed $tpl
  */
 public function display($tpl = null)
 {
     $model = $this->getModel('installer');
     // Initialize templates vars!
     try {
         $this->installedDbVersion = $model->getInstalledDbVersion();
         $this->installedDbVersionId = $model->getInternalVersionName();
         $this->securityToken = cssJSToolbox::getSecurityToken();
         $this->operations = $model->getOperations();
         $this->upgrade = $model->isUpgrade();
     } catch (Exception $exception) {
         $this->error = $exception;
     }
     // Display view!
     echo $this->getTemplate($tpl);
 }
Ejemplo n.º 5
0
 /**
  * put your comment there...
  * 
  * @param mixed $tpl
  */
 public function display($tpl = null)
 {
     // Get model object!
     $model = $this->getModel('extensions');
     // Some time we work as aspecific extensions page or geneal Wordpress plugins page!
     $this->securityToken = cssJSToolbox::getSecurityToken();
     $this->listTypeName = $model->getListTypeName();
     $this->extensions = CJTPlugin::getInstance()->extensions();
     if ($this->listTypeName == 'extensions') {
         // Select Extensions menu item instead of Wordpress Plugins item!
         add_filter('parent_file', array(&$this, 'activateExtensionsMenuItem'));
     }
     // Output internal HTML used by JS!
     add_action('admin_footer', array(&$this, 'outputCommonMarkups'));
     // Add SETUP Link inside the Plugins (only CJT extensions) row!
     add_filter('plugin_action_links', array(&$this, 'addExtensionActions'), 10, 2);
 }