/** * Constructor */ public function __construct($config = array()) { // first we run the perent constructor if (parent::__construct($config)) { // set the Joomla version $this->joomlaVersion = $config['joomlaVersion']; // set the template path $this->templatePath = $this->compilerPath . '/joomla_' . $config['joomlaVersion']; // set some default names $this->componentSalesName = 'com_' . $this->componentData->sales_name . '__J' . $this->joomlaVersion; $this->componentBackupName = 'com_' . $this->componentData->sales_name . '_v' . str_replace('.', '_', $this->componentData->component_version) . '__J' . $this->joomlaVersion; $this->componentFolderName = 'com_' . $this->componentData->name_code . '_v' . str_replace('.', '_', $this->componentData->component_version) . '__J' . $this->joomlaVersion; // set component folder path $this->componentPath = $this->compilerPath . '/' . $this->componentFolderName; // set the template path for custom $this->templatePathCustom = $this->params->get('custom_folder_path', JPATH_COMPONENT_ADMINISTRATOR . '/custom'); // set the Joomla Version Data $this->joomlaVersionData = $this->setJoomlaVersionData(); // make sure there is no old build $this->removeFolder($this->componentPath); // set the new folders if (!$this->setFolders()) { return false; } // set all static folders and files if (!$this->setStatic()) { return false; } // set all the dynamic folders and files if (!$this->setDynamique()) { return false; } return true; } return false; }
public function __construct(\Frame\Core\Context $context) { parent::__construct($context); $this->get = json_decode($_SERVER['QUERY_STRING'], true); }