continue with getter/setter removal

This commit is contained in:
Dennis Eichhorn 2023-05-30 04:15:35 +02:00
parent 02a6f94485
commit 4933832530
3 changed files with 5 additions and 5 deletions

View File

@ -117,7 +117,7 @@ final class ApiController extends Controller
if ($request->hasData('title')) { if ($request->hasData('title')) {
$type->setL11n( $type->setL11n(
$request->getDataString('title') ?? '', $request->getDataString('title') ?? '',
$request->getDataString('lang') ?? $request->getLanguage() $request->getDataString('lang') ?? $request->header->l11n->language
); );
} }
@ -188,7 +188,7 @@ final class ApiController extends Controller
$l11nEditorDocType->ref = $request->getDataInt('type') ?? 0; $l11nEditorDocType->ref = $request->getDataInt('type') ?? 0;
$l11nEditorDocType->content = $request->getDataString('title') ?? ''; $l11nEditorDocType->content = $request->getDataString('title') ?? '';
$l11nEditorDocType->setLanguage( $l11nEditorDocType->setLanguage(
$request->getDataString('language') ?? $request->getLanguage() $request->getDataString('language') ?? $request->header->l11n->language
); );
return $l11nEditorDocType; return $l11nEditorDocType;

View File

@ -102,7 +102,7 @@ final class BackendController extends Controller
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1005301001, $request, $response)); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1005301001, $request, $response));
$path = \str_replace('+', ' ', (string) ($request->getData('path') ?? '/')); $path = \str_replace('+', ' ', (string) ($request->getData('path') ?? '/'));
$docs = EditorDocMapper::getByVirtualPath($path, $request->header->account)->where('tags/title/language', $response->getLanguage())->execute(); $docs = EditorDocMapper::getByVirtualPath($path, $request->header->account)->where('tags/title/language', $response->header->l11n->language)->execute();
list($collection, $parent) = CollectionMapper::getCollectionsByPath($path); list($collection, $parent) = CollectionMapper::getCollectionsByPath($path);
@ -137,7 +137,7 @@ final class BackendController extends Controller
->with('tags/title') ->with('tags/title')
->with('media') ->with('media')
->where('id', (int) $request->getData('id')) ->where('id', (int) $request->getData('id'))
->where('tags/title/language', $response->getLanguage()) ->where('tags/title/language', $response->header->l11n->language)
->execute(); ->execute();
$accountId = $request->header->account; $accountId = $request->header->account;

View File

@ -37,7 +37,7 @@ $pdf->setAuthor($this->getData('creator') ?? 'Jingga');
$pdf->setTitle($this->getData('title') ?? $bill->type->getL11n()); $pdf->setTitle($this->getData('title') ?? $bill->type->getL11n());
$pdf->setSubject($this->getData('subtitle') ?? ''); $pdf->setSubject($this->getData('subtitle') ?? '');
$pdf->setKeywords(\implode(', ', $this->getData('keywords') ?? [])); $pdf->setKeywords(\implode(', ', $this->getData('keywords') ?? []));
$pdf->language = $bill->getLanguage(); $pdf->language = $bill->language;
$pdf->attributes['legal_name'] = $this->getData('legal_company_name') ?? 'Jingga e.K.'; $pdf->attributes['legal_name'] = $this->getData('legal_company_name') ?? 'Jingga e.K.';
$pdf->attributes['address'] = $this->getData('company_address') ?? 'Gartenstr. 26'; $pdf->attributes['address'] = $this->getData('company_address') ?? 'Gartenstr. 26';