add 3.2.0.0 ioncube PHP 7.1-7.2

This commit is contained in:
2019-12-10 11:45:33 +01:00
parent 8d768c6f77
commit 1bed6e837c
219 changed files with 16719 additions and 15391 deletions

View File

@ -31,6 +31,8 @@ use Exception;
use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException;
use OxidEsales\Eshop\Core\Exception\DatabaseErrorException;
use OxidEsales\Eshop\Core\Exception\DatabaseException;
use OxidEsales\Eshop\Core\Language;
use OxidEsales\Eshop\Core\Registry;
use OxidEsales\Eshop\Core\Request;
use OxidEsales\Eshop\Core\Base;
use OxidEsales\Eshop\Core\Exception\StandardException;
@ -347,7 +349,7 @@ class d3ordermanager_response extends Base
$request = d3GetModCfgDIC()->get('d3ox.ordermanager.'.Request::class);
$iCjId = $request->getRequestEscapedParameter('cjid');
if (false === $iCjId || null === $iCjId) {
if (false === $iCjId || null === $iCjId || $iCjId === '') {
$iCjId = 0;
}
@ -368,4 +370,49 @@ class d3ordermanager_response extends Base
return $sVarName;
}
/**
* @throws Exception
*/
public function getLastExecDate()
{
return $this->_getSet()->getValue($this->_getCronTimestampVarName());
}
/**
* @throws Exception
*/
public function getLastExecDateInfo()
{
$sCronJobId = $this->_getCronJobIdParameter();
$taskCount = current(
array_filter(
$this->getManager()->getAvailableCronjobIds(),
function($entry) use ($sCronJobId) {
return ($entry['id'] == $sCronJobId) ? true : false;
}
)
)['count'];
return [
sprintf(
$this->getLang()->translateString('D3_GENERAL_ORDERMANAGER_TASKCOUNT_CRONID'),
$sCronJobId,
$taskCount
),
sprintf(
$this->getLang()->translateString('D3_GENERAL_ORDERMANAGER_LASTEXEC_CRONID'),
$sCronJobId,
$this->getLastExecDate()
)
];
}
/**
* @return Language
*/
public function getLang()
{
return Registry::getLang();
}
}