mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-01-31 13:48:41 +00:00
crash backup
This commit is contained in:
parent
c462879f87
commit
bbc4468cb1
|
|
@ -88,7 +88,7 @@ final class ApiController extends Controller
|
||||||
->with('reports/source')
|
->with('reports/source')
|
||||||
->with('reports/source/sources')
|
->with('reports/source/sources')
|
||||||
->with('createdBy')
|
->with('createdBy')
|
||||||
->where('id', (int) $request->getData('id'))
|
->where('id', $request->getDataInt('id') ?? 0)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
$accountId = $request->header->account;
|
$accountId = $request->header->account;
|
||||||
|
|
@ -151,7 +151,7 @@ final class ApiController extends Controller
|
||||||
private function setScriptResponseHeader(View $view, string $name, RequestAbstract $request, ResponseAbstract $response) : void
|
private function setScriptResponseHeader(View $view, string $name, RequestAbstract $request, ResponseAbstract $response) : void
|
||||||
{
|
{
|
||||||
/** @var array $tcoll */
|
/** @var array $tcoll */
|
||||||
$tcoll = $view->getData('tcoll') ?? [];
|
$tcoll = $view->data['tcoll'] ?? [];
|
||||||
|
|
||||||
switch ($request->getData('type')) {
|
switch ($request->getData('type')) {
|
||||||
case 'pdf':
|
case 'pdf':
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ final class BackendController extends Controller
|
||||||
->with('tags/title')
|
->with('tags/title')
|
||||||
->with('source')
|
->with('source')
|
||||||
->with('source/sources')
|
->with('source/sources')
|
||||||
->where('id', (int) $request->getData('id'))
|
->where('id', $request->getDataInt('id') ?? 0)
|
||||||
->where('tags/title/language', $response->header->l11n->language)
|
->where('tags/title/language', $response->header->l11n->language)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ $accountDir = $account->id . ' ' . $account->login;
|
||||||
|
|
||||||
/** @var \Modules\Media\Models\Collection[] */
|
/** @var \Modules\Media\Models\Collection[] */
|
||||||
$collections = $this->data['collections'];
|
$collections = $this->data['collections'];
|
||||||
$mediaPath = \urldecode($this->getData('path') ?? '/');
|
$mediaPath = \urldecode($this->data['path'] ?? '/');
|
||||||
|
|
||||||
$previous = empty($templates) ? '{/base}/script/list' : '{/base}/script/list?{?}&offset=' . \reset($templates)->id . '&ptype=p';
|
$previous = empty($templates) ? '{/base}/script/list' : '{/base}/script/list?{?}&offset=' . \reset($templates)->id . '&ptype=p';
|
||||||
$next = empty($templates) ? '{/base}/script/list' : 'script/list?{?}&offset=' . \end($templates)->id . '&ptype=n';
|
$next = empty($templates) ? '{/base}/script/list' : 'script/list?{?}&offset=' . \end($templates)->id . '&ptype=n';
|
||||||
|
|
|
||||||
|
|
@ -28,11 +28,11 @@ echo $this->data['nav']->render(); ?>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="iDescription"><?= $this->getHtml('Description'); ?></label>
|
<label for="iDescription"><?= $this->getHtml('Description'); ?></label>
|
||||||
<?= $this->getData('editor')->render('report-editor'); ?>
|
<?= $this->data['editor']->render('report-editor'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?= $this->getData('editor')->getData('text')->render('report-editor', 'description', 'helper-template-create'); ?>
|
<?= $this->data['editor']->data['text']->render('report-editor', 'description', 'helper-template-create'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,11 @@ declare(strict_types=1);
|
||||||
/**
|
/**
|
||||||
* @var \phpOMS\Views\View $this
|
* @var \phpOMS\Views\View $this
|
||||||
*/
|
*/
|
||||||
$tcoll = $this->getData('tcoll');
|
$tcoll = $this->data['tcoll'];
|
||||||
$rcoll = $this->getData('rcoll');
|
$rcoll = $this->data['rcoll'];
|
||||||
$cLang = $this->getData('lang');
|
$cLang = $this->data['lang'];
|
||||||
$template = $this->getData('template');
|
$template = $this->data['template'];
|
||||||
$report = $this->getData('report');
|
$report = $this->data['report'];
|
||||||
|
|
||||||
/** @noinspection PhpIncludeInspection */
|
/** @noinspection PhpIncludeInspection */
|
||||||
$reportLanguage = include __DIR__ . '/../../../../' . \ltrim($tcoll['lang']->getPath(), '/');
|
$reportLanguage = include __DIR__ . '/../../../../' . \ltrim($tcoll['lang']->getPath(), '/');
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
require __DIR__ . '/Worker.php';
|
require __DIR__ . '/Worker.php';
|
||||||
$lang = $this->getData('lang');
|
$lang = $this->data['lang'];
|
||||||
|
|
||||||
\date_default_timezone_set('Europe/London');
|
\date_default_timezone_set('Europe/London');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,12 @@ use phpOMS\Business\Finance\Depreciation;
|
||||||
/**
|
/**
|
||||||
* @var \phpOMS\Views\View $this
|
* @var \phpOMS\Views\View $this
|
||||||
*/
|
*/
|
||||||
$tcoll = $this->getData('tcoll');
|
$tcoll = $this->data['tcoll'];
|
||||||
$rcoll = $this->getData('rcoll');
|
$rcoll = $this->data['rcoll'];
|
||||||
$cLang = $this->getData('lang');
|
$cLang = $this->data['lang'];
|
||||||
$template = $this->getData('template');
|
$template = $this->data['template'];
|
||||||
$report = $this->getData('report');
|
$report = $this->data['report'];
|
||||||
$basepath = \rtrim($this->getData('basepath') ?? '', '/');
|
$basepath = \rtrim($this->data['basepath'] ?? '', '/');
|
||||||
|
|
||||||
/** @noinspection PhpIncludeInspection */
|
/** @noinspection PhpIncludeInspection */
|
||||||
$reportLanguage = include $basepath . '/' . \ltrim($tcoll['lang']->getPath(), '/');
|
$reportLanguage = include $basepath . '/' . \ltrim($tcoll['lang']->getPath(), '/');
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,12 @@ use PhpOffice\PhpSpreadsheet\Style\Fill;
|
||||||
/**
|
/**
|
||||||
* @var \phpOMS\Views\View $this
|
* @var \phpOMS\Views\View $this
|
||||||
*/
|
*/
|
||||||
$tcoll = $this->getData('tcoll');
|
$tcoll = $this->data['tcoll'];
|
||||||
$rcoll = $this->getData('rcoll');
|
$rcoll = $this->data['rcoll'];
|
||||||
$cLang = $this->getData('lang');
|
$cLang = $this->data['lang'];
|
||||||
$template = $this->getData('template');
|
$template = $this->data['template'];
|
||||||
$report = $this->getData('report');
|
$report = $this->data['report'];
|
||||||
$basepath = \rtrim($this->getData('basepath') ?? '', '/');
|
$basepath = \rtrim($this->data['basepath'] ?? '', '/');
|
||||||
|
|
||||||
/** @noinspection PhpIncludeInspection */
|
/** @noinspection PhpIncludeInspection */
|
||||||
$reportLanguage = include $basepath . '/' . \ltrim($tcoll['lang']->getPath(), '/');
|
$reportLanguage = include $basepath . '/' . \ltrim($tcoll['lang']->getPath(), '/');
|
||||||
|
|
|
||||||
|
|
@ -18,12 +18,12 @@ use phpOMS\Uri\UriFactory;
|
||||||
/**
|
/**
|
||||||
* @var \phpOMS\Views\View $this
|
* @var \phpOMS\Views\View $this
|
||||||
*/
|
*/
|
||||||
$tcoll = $this->getData('tcoll');
|
$tcoll = $this->data['tcoll'];
|
||||||
$rcoll = $this->getData('rcoll');
|
$rcoll = $this->data['rcoll'];
|
||||||
$cLang = $this->getData('lang');
|
$cLang = $this->data['lang'];
|
||||||
$template = $this->getData('template');
|
$template = $this->data['template'];
|
||||||
$report = $this->getData('report');
|
$report = $this->data['report'];
|
||||||
$basepath = \rtrim($this->getData('basepath') ?? '', '/');
|
$basepath = \rtrim($this->data['basepath'] ?? '', '/');
|
||||||
|
|
||||||
/** @noinspection PhpIncludeInspection */
|
/** @noinspection PhpIncludeInspection */
|
||||||
$reportLanguage = include $basepath . '/' . \ltrim($tcoll['lang']->getPath(), '/');
|
$reportLanguage = include $basepath . '/' . \ltrim($tcoll['lang']->getPath(), '/');
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@ use phpOMS\Business\Finance\Depreciation;
|
||||||
/**
|
/**
|
||||||
* @var \phpOMS\Views\View $this
|
* @var \phpOMS\Views\View $this
|
||||||
*/
|
*/
|
||||||
$tcoll = $this->getData('tcoll');
|
$tcoll = $this->data['tcoll'];
|
||||||
$rcoll = $this->getData('rcoll');
|
$rcoll = $this->data['rcoll'];
|
||||||
$cLang = $this->getData('lang');
|
$cLang = $this->data['lang'];
|
||||||
$template = $this->getData('template');
|
$template = $this->data['template'];
|
||||||
$report = $this->getData('report');
|
$report = $this->data['report'];
|
||||||
$basepath = \rtrim($this->getData('basepath') ?? '', '/');
|
$basepath = \rtrim($this->data['basepath'] ?? '', '/');
|
||||||
|
|
||||||
/** @noinspection PhpIncludeInspection */
|
/** @noinspection PhpIncludeInspection */
|
||||||
$reportLanguage = include $basepath . '/' . \ltrim($tcoll['lang']->getPath(), '/');
|
$reportLanguage = include $basepath . '/' . \ltrim($tcoll['lang']->getPath(), '/');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user