Skip to content
Code-Schnipsel Gruppen Projekte
Commit c3ce252a erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

refactor: psr und menü titel verbessert

Übergeordneter 6626af5e
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -11,7 +11,6 @@
* @param String $dayOfWeek
* @param string $params
*/
QUI::$Ajax->registerFunction(
'package_quiqqer_cron_ajax_add',
function ($cron, $min, $hour, $day, $month, $dayOfWeek, $params) {
......
......@@ -5,7 +5,6 @@
*
* @param string $ids - json array
*/
QUI::$Ajax->registerFunction(
'package_quiqqer_cron_ajax_delete',
function ($ids) {
......
<?php
/**
* Add a cron to the cron list
* Edit a cron
*
* @param String $cronId
* @param String $cron
......@@ -12,7 +12,6 @@
* @param String $dayOfWeek
* @param String $params
*/
QUI::$Ajax->registerFunction(
'package_quiqqer_cron_ajax_edit',
function ($cronId, $cron, $min, $hour, $day, $month, $dayOfWeek, $params) {
......
......@@ -3,14 +3,12 @@
/**
* Execute the cron list
*/
QUI::$Ajax->registerFunction(
'package_quiqqer_cron_ajax_execute',
function () {
try {
$Manager = new QUI\Cron\Manager();
$Manager->execute();
} catch (QUI\Exception $Exception) {
QUI\System\Log::addError(
'package_quiqqer_cron_ajax_execute() :: ' . $Exception->getMessage()
......
......@@ -5,7 +5,6 @@
*
* @return array
*/
QUI::$Ajax->registerFunction(
'package_quiqqer_cron_ajax_getList',
function () {
......
......@@ -13,8 +13,8 @@ QUI::$Ajax->registerFunction(
$params = json_decode($params, true);
return array(
'page' => (int)$params['page'],
'data' => $CronManager->getHistoryList($params),
'page' => (int)$params['page'],
'data' => $CronManager->getHistoryList($params),
'total' => $CronManager->getHistoryCount()
);
},
......
......@@ -27,7 +27,7 @@ try {
if ($User->getId()) {
QUI::getSession()->set('uid', $User->getId());
QUI\Rights\Permission::setUser($User);
QUI\Permissions\Permission::setUser($User);
}
}
} catch (QUI\Exception $Exception) {
......@@ -41,7 +41,6 @@ try {
$Response->setStatusCode(Response::HTTP_OK);
$Response->send();
} catch (QUI\Exception $Exception) {
QUI\System\Log::addAlert($Exception->getMessage(), array(
'type' => 'cron execution'
......
......@@ -29,8 +29,8 @@
</locale>
<locale name="settings.title">
<de><![CDATA[Cron Einstellungen]]></de>
<en><![CDATA[Cron settings]]></en>
<de><![CDATA[Cron / Wiederkehrende Aufgaben]]></de>
<en><![CDATA[Cron / Recurring tasks]]></en>
</locale>
<locale name="settings.cron.title">
<de><![CDATA[Allgemeine Einstellungen]]></de>
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren