mirror of
https://github.com/Karaka-Management/Developer-Guide.git
synced 2026-01-11 20:38:42 +00:00
Update
This commit is contained in:
parent
5cd30bfd62
commit
8cbb812c54
|
|
@ -59,11 +59,12 @@ namespace Modules\Navigation\Admin;
|
|||
|
||||
use phpOMS\DataStorage\Database\DatabaseType;
|
||||
use phpOMS\DataStorage\Database\Pool;
|
||||
use phpOMS\Module\InfoManager;
|
||||
use phpOMS\Module\InstallerAbstract;
|
||||
|
||||
class Installer extends InstallerAbstract
|
||||
{
|
||||
public static function install(Pool $dbPool, array $info)
|
||||
public static function install(Pool $dbPool, InfoManager $info)
|
||||
{
|
||||
parent::install($dbPool, $info);
|
||||
|
||||
|
|
@ -142,9 +143,9 @@ The content of the language file is straight forward:
|
|||
|
||||
```
|
||||
<?php
|
||||
$MODLANG['{UniqueModuleName}'] = [
|
||||
$return [ '{UniqueModuleName}' => [
|
||||
'StringID' => 'Your localized string',
|
||||
];
|
||||
]];
|
||||
```
|
||||
|
||||
All other language files are optional and usually are only required by other modules. The navigation module for example requires an extra language file for the navigation elements. This however should be specified in the modules you want to make use of.
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ Example usage in a module handling a API request:
|
|||
|
||||
```
|
||||
if($request->getData('CSRF') === null) {
|
||||
$response->setStatusCode(403);
|
||||
$response->setStatusCode(RequestStatus::R_403);
|
||||
|
||||
/* optional */
|
||||
$response->set($request->__toString(), new Notify('Unknown referrer!', NotifyType::INFO));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user