mirror of
https://github.com/Karaka-Management/oms-ClientManagement.git
synced 2026-02-12 14:58:43 +00:00
continue with getter/setter removal
This commit is contained in:
parent
d0dd02149a
commit
851a217ac8
|
|
@ -315,7 +315,7 @@ final class ApiController extends Controller
|
||||||
$response,
|
$response,
|
||||||
NotificationLevel::OK,
|
NotificationLevel::OK,
|
||||||
'',
|
'',
|
||||||
$this->app->l11nManager->getText($response->getLanguage(), '0', '0', 'SuccessfulUpdate'),
|
$this->app->l11nManager->getText($response->header->l11n->language, '0', '0', 'SuccessfulUpdate'),
|
||||||
$new
|
$new
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -403,7 +403,7 @@ final class ApiController extends Controller
|
||||||
$clientL11n->ref = $request->getDataInt('client') ?? 0;
|
$clientL11n->ref = $request->getDataInt('client') ?? 0;
|
||||||
$clientL11n->type = new NullBaseStringL11nType($request->getDataInt('type') ?? 0);
|
$clientL11n->type = new NullBaseStringL11nType($request->getDataInt('type') ?? 0);
|
||||||
$clientL11n->setLanguage(
|
$clientL11n->setLanguage(
|
||||||
$request->getDataString('language') ?? $request->getLanguage()
|
$request->getDataString('language') ?? $request->header->l11n->language
|
||||||
);
|
);
|
||||||
$clientL11n->content = $request->getDataString('description') ?? '';
|
$clientL11n->content = $request->getDataString('description') ?? '';
|
||||||
|
|
||||||
|
|
@ -615,7 +615,7 @@ final class ApiController extends Controller
|
||||||
$attrL11n = new BaseStringL11n();
|
$attrL11n = new BaseStringL11n();
|
||||||
$attrL11n->ref = $request->getDataInt('type') ?? 0;
|
$attrL11n->ref = $request->getDataInt('type') ?? 0;
|
||||||
$attrL11n->setLanguage(
|
$attrL11n->setLanguage(
|
||||||
$request->getDataString('language') ?? $request->getLanguage()
|
$request->getDataString('language') ?? $request->header->l11n->language
|
||||||
);
|
);
|
||||||
$attrL11n->content = $request->getDataString('title') ?? '';
|
$attrL11n->content = $request->getDataString('title') ?? '';
|
||||||
|
|
||||||
|
|
@ -840,7 +840,7 @@ final class ApiController extends Controller
|
||||||
$attrL11n = new BaseStringL11n();
|
$attrL11n = new BaseStringL11n();
|
||||||
$attrL11n->ref = $request->getDataInt('value') ?? 0;
|
$attrL11n->ref = $request->getDataInt('value') ?? 0;
|
||||||
$attrL11n->setLanguage(
|
$attrL11n->setLanguage(
|
||||||
$request->getDataString('language') ?? $request->getLanguage()
|
$request->getDataString('language') ?? $request->header->l11n->language
|
||||||
);
|
);
|
||||||
$attrL11n->content = $request->getDataString('title') ?? '';
|
$attrL11n->content = $request->getDataString('title') ?? '';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ final class BackendController extends Controller
|
||||||
/** @var \Modules\Attribute\Models\AttributeType[] $attributes */
|
/** @var \Modules\Attribute\Models\AttributeType[] $attributes */
|
||||||
$attributes = ClientAttributeTypeMapper::getAll()
|
$attributes = ClientAttributeTypeMapper::getAll()
|
||||||
->with('l11n')
|
->with('l11n')
|
||||||
->where('l11n/language', $response->getLanguage())
|
->where('l11n/language', $response->header->l11n->language)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
$view->addData('attributes', $attributes);
|
$view->addData('attributes', $attributes);
|
||||||
|
|
@ -94,7 +94,7 @@ final class BackendController extends Controller
|
||||||
/** @var \Modules\Attribute\Models\AttributeValue[] $attributes */
|
/** @var \Modules\Attribute\Models\AttributeValue[] $attributes */
|
||||||
$attributes = ClientAttributeValueMapper::getAll()
|
$attributes = ClientAttributeValueMapper::getAll()
|
||||||
->with('l11n')
|
->with('l11n')
|
||||||
->where('l11n/language', $response->getLanguage())
|
->where('l11n/language', $response->header->l11n->language)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
$view->addData('attributes', $attributes);
|
$view->addData('attributes', $attributes);
|
||||||
|
|
@ -124,7 +124,7 @@ final class BackendController extends Controller
|
||||||
$attribute = ClientAttributeTypeMapper::get()
|
$attribute = ClientAttributeTypeMapper::get()
|
||||||
->with('l11n')
|
->with('l11n')
|
||||||
->where('id', (int) $request->getData('id'))
|
->where('id', (int) $request->getData('id'))
|
||||||
->where('l11n/language', $response->getLanguage())
|
->where('l11n/language', $response->header->l11n->language)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
$l11ns = ClientAttributeTypeL11nMapper::getAll()
|
$l11ns = ClientAttributeTypeL11nMapper::getAll()
|
||||||
|
|
@ -261,7 +261,7 @@ final class BackendController extends Controller
|
||||||
->with('type/l11n')
|
->with('type/l11n')
|
||||||
->with('client')
|
->with('client')
|
||||||
->where('client', $client->id)
|
->where('client', $client->id)
|
||||||
->where('type/l11n/language', $response->getLanguage())
|
->where('type/l11n/language', $response->header->l11n->language)
|
||||||
->sort('id', OrderType::DESC)
|
->sort('id', OrderType::DESC)
|
||||||
->limit(5)
|
->limit(5)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user