mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-02-14 16:58:42 +00:00
impl. todos or move to Project.md
This commit is contained in:
parent
3f84308c01
commit
b0aa60a334
|
|
@ -12,14 +12,7 @@ If you have a good idea for improvement feel free to create a new issue with all
|
||||||
|
|
||||||
### Issues
|
### Issues
|
||||||
|
|
||||||
Feel free to grab any open issue implement it and create a new pull request. Most issues can be found in the code and have the following structure:
|
Feel free to grab any open issue implement it and create a new pull request. Most issues can be found in the `Project.md` file in the `Docs` repository.
|
||||||
|
|
||||||
```php
|
|
||||||
/**
|
|
||||||
* @todo Orange-Management/Orange-Management#ISSUE_NUMBER [d:difficulty]
|
|
||||||
* Description for the issue
|
|
||||||
*/
|
|
||||||
```
|
|
||||||
|
|
||||||
The issue information can be used to provide additional information such as priority, difficulty and type. For your first issue try to find a issue marked `[d:first]` or `[d:beginner]`.
|
The issue information can be used to provide additional information such as priority, difficulty and type. For your first issue try to find a issue marked `[d:first]` or `[d:beginner]`.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,19 @@ final class Exporter extends ExporterAbstract
|
||||||
*/
|
*/
|
||||||
private int $account = 1;
|
private int $account = 1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param ConnectionAbstract $local Database connection
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public function __construct(ConnectionAbstract $local)
|
||||||
|
{
|
||||||
|
$this->local = $local;
|
||||||
|
$this->app->l11nManager->loadLanguageFile('Exchange', __DIR__ . '/Lang/lang.php');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Export all data in time span
|
* Export all data in time span
|
||||||
*
|
*
|
||||||
|
|
@ -84,7 +97,7 @@ final class Exporter extends ExporterAbstract
|
||||||
$log = new ExchangeLog();
|
$log = new ExchangeLog();
|
||||||
$log->createdBy = $this->account;
|
$log->createdBy = $this->account;
|
||||||
$log->setType(ExchangeType::EXPORT);
|
$log->setType(ExchangeType::EXPORT);
|
||||||
$log->message = 'Language file exported.'; // @todo: localize!
|
$log->message = $this->app->l11nManager->getText($request->header->l11n->getLanguage(), 'Exchange', '', 'LangFileExported');
|
||||||
$log->subtype = 'language';
|
$log->subtype = 'language';
|
||||||
$log->exchange = (int) $request->getData('id');
|
$log->exchange = (int) $request->getData('id');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,19 @@ final class Importer extends ImporterAbstract
|
||||||
*/
|
*/
|
||||||
private int $account = 1;
|
private int $account = 1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param ConnectionAbstract $local Database connection
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public function __construct(ConnectionAbstract $local)
|
||||||
|
{
|
||||||
|
$this->local = $local;
|
||||||
|
$this->app->l11nManager->loadLanguageFile('Exchange', __DIR__ . '/Lang/lang.php');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Import all data in time span
|
* Import all data in time span
|
||||||
*
|
*
|
||||||
|
|
@ -106,7 +119,7 @@ final class Importer extends ImporterAbstract
|
||||||
$log = new ExchangeLog();
|
$log = new ExchangeLog();
|
||||||
$log->createdBy = $this->account;
|
$log->createdBy = $this->account;
|
||||||
$log->setType(ExchangeType::IMPORT);
|
$log->setType(ExchangeType::IMPORT);
|
||||||
$log->message = 'Language file imported.'; // @todo: localize!
|
$log->message = $this->app->l11nManager->getText($request->header->l11n->getLanguage(), 'Exchange', '', 'LangFileImported');
|
||||||
$log->subtype = 'language';
|
$log->subtype = 'language';
|
||||||
$log->exchange = (int) $request->getData('id');
|
$log->exchange = (int) $request->getData('id');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user