* @link http://www.oxidmodule.com */ namespace D3\ModCfg\Application\Model\Filegenerator; use D3\ModCfg\Application\Model\Constants; class d3filegeneratorcronsh extends d3filegenerator { protected string $_sContentNameBaseKey = 'D3_SHGENERATOR_CRON_'; protected ?string $_sScriptPath = null; protected array $_aSortedParameterList = []; protected array $_aContentList = [ 'standard' => '@'.Constants::OXID_MODULE_ID.'/admin/pattern/sh_cron_standard', 'profihost_php80' => '@'.Constants::OXID_MODULE_ID.'/admin/pattern/sh_cron_profihost80', 'profihost_php81' => '@'.Constants::OXID_MODULE_ID.'/admin/pattern/sh_cron_profihost81', 'profihost_php82' => '@'.Constants::OXID_MODULE_ID.'/admin/pattern/sh_cron_profihost82', 'profihost_php83' => '@'.Constants::OXID_MODULE_ID.'/admin/pattern/sh_cron_profihost83', ]; /** * @param $sPath */ public function setScriptPath($sPath): void { $this->_sScriptPath = $sPath; } /** * @param array $aParameterList */ public function setSortedParameterList(array $aParameterList): void { ksort($aParameterList); $this->_aSortedParameterList = $aParameterList; } /** * @return array */ public function getContext(): array { return array_merge( parent::getContext(), [ 'sPHPInterpreterPath' => $this->getPHPInterpreterPath(), 'sScriptPath' => $this->_sScriptPath ?: null, 'aParameters' => $this->_aSortedParameterList ?: null, ] ); } }