registration fixes

This commit is contained in:
Dennis Eichhorn 2023-03-24 16:20:24 +01:00
parent 0908cbc7fc
commit 4035d30c35
83 changed files with 148 additions and 145 deletions

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Admin\Install * @package Modules\News\Admin\Install
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Database\Schema\Builder;
* Comments class. * Comments class.
* *
* @package Modules\News\Admin\Install * @package Modules\News\Admin\Install
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Admin\Install * @package Modules\News\Admin\Install
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -20,7 +20,7 @@ use phpOMS\Application\ApplicationAbstract;
* Dashboard class. * Dashboard class.
* *
* @package Modules\News\Admin\Install * @package Modules\News\Admin\Install
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Admin\Install * @package Modules\News\Admin\Install
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -20,7 +20,7 @@ use phpOMS\Application\ApplicationAbstract;
* Media class. * Media class.
* *
* @package Modules\News\Admin\Install * @package Modules\News\Admin\Install
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -5,7 +5,7 @@
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "News", "name": "News",
"uri": "{/lang}/{/app}/news/dashboard?u={?u}", "uri": "{/base}/news/dashboard?u={?u}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 40, "order": 40,
@ -19,7 +19,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "News", "name": "News",
"uri": "{/lang}/{/app}/news/dashboard?u={?u}", "uri": "{/base}/news/dashboard?u={?u}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -34,7 +34,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Archive", "name": "Archive",
"uri": "{/lang}/{/app}/news/archive?u={?u}", "uri": "{/base}/news/archive?u={?u}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -49,7 +49,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/lang}/{/app}/news/create?{?}", "uri": "{/base}/news/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,
@ -64,7 +64,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Draft", "name": "Draft",
"uri": "{/lang}/{/app}/news/draft/list?u={?u}", "uri": "{/base}/news/draft/list?u={?u}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 15, "order": 15,
@ -79,7 +79,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Analysis", "name": "Analysis",
"uri": "{/lang}/{/app}/news/analysis", "uri": "{/base}/news/analysis",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 15, "order": 15,

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Admin\Install * @package Modules\News\Admin\Install
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -20,7 +20,7 @@ use phpOMS\Application\ApplicationAbstract;
* Navigation class. * Navigation class.
* *
* @package Modules\News\Admin\Install * @package Modules\News\Admin\Install
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Admin * @package Modules\News\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -20,7 +20,7 @@ use phpOMS\Module\InstallerAbstract;
* Installer class. * Installer class.
* *
* @package Modules\News\Admin * @package Modules\News\Admin
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules * @package Modules
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules * @package Modules
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Admin * @package Modules\News\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -20,7 +20,7 @@ use phpOMS\Module\StatusAbstract;
* Status class. * Status class.
* *
* @package Modules\News\Admin * @package Modules\News\Admin
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Admin * @package Modules\News\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -20,7 +20,7 @@ use phpOMS\Module\UninstallerAbstract;
* Uninstaller class. * Uninstaller class.
* *
* @package Modules\News\Admin * @package Modules\News\Admin
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Admin * @package Modules\News\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -20,7 +20,7 @@ use phpOMS\Module\UpdaterAbstract;
* Updater class. * Updater class.
* *
* @package Modules\News\Admin * @package Modules\News\Admin
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News * @package Modules\News
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -41,7 +41,7 @@ use phpOMS\Utils\Parser\Markdown\Markdown;
* News controller class. * News controller class.
* *
* @package Modules\News * @package Modules\News
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */
@ -62,15 +62,15 @@ final class ApiController extends Controller
if (($val['title'] = empty($request->getData('title'))) if (($val['title'] = empty($request->getData('title')))
|| ($val['plain'] = empty($request->getData('plain'))) || ($val['plain'] = empty($request->getData('plain')))
|| ($val['lang'] = ( || ($val['lang'] = (
$request->getData('lang') !== null $request->hasData('lang')
&& !ISO639x1Enum::isValidValue(\strtolower((string) $request->getData('lang'))) && !ISO639x1Enum::isValidValue(\strtolower((string) $request->getData('lang')))
)) ))
|| ($val['type'] = ( || ($val['type'] = (
$request->getData('type') === null !$request->hasData('type')
|| !NewsType::isValidValue((int) $request->getData('type')) || !NewsType::isValidValue((int) $request->getData('type'))
)) ))
|| ($val['status'] = ( || ($val['status'] = (
$request->getData('status') === null !$request->hasData('status')
|| !NewsStatus::isValidValue((int) $request->getData('status')) || !NewsStatus::isValidValue((int) $request->getData('status'))
)) ))
) { ) {
@ -117,15 +117,15 @@ final class ApiController extends Controller
/** @var \Modules\News\Models\NewsArticle $newsArticle */ /** @var \Modules\News\Models\NewsArticle $newsArticle */
$newsArticle = NewsArticleMapper::get()->where('id', (int) $request->getData('id'))->execute(); $newsArticle = NewsArticleMapper::get()->where('id', (int) $request->getData('id'))->execute();
$newsArticle->publish = new \DateTime((string) ($request->getData('publish') ?? $newsArticle->publish->format('Y-m-d H:i:s'))); $newsArticle->publish = new \DateTime((string) ($request->getData('publish') ?? $newsArticle->publish->format('Y-m-d H:i:s')));
$newsArticle->title = (string) ($request->getData('title') ?? $newsArticle->title); $newsArticle->title = $request->getDataString('title') ?? $newsArticle->title;
$newsArticle->plain = (string) ($request->getData('plain') ?? $newsArticle->plain); $newsArticle->plain = $request->getDataString('plain') ?? $newsArticle->plain;
$newsArticle->content = Markdown::parse((string) ($request->getData('plain') ?? $newsArticle->plain)); $newsArticle->content = Markdown::parse($request->getDataString('plain') ?? $newsArticle->plain);
$newsArticle->setLanguage(\strtolower((string) ($request->getData('lang') ?? $newsArticle->getLanguage()))); $newsArticle->setLanguage(\strtolower($request->getDataString('lang') ?? $newsArticle->getLanguage()));
$newsArticle->setType((int) ($request->getData('type') ?? $newsArticle->getType())); $newsArticle->setType($request->getDataInt('type') ?? $newsArticle->getType());
$newsArticle->setStatus((int) ($request->getData('status') ?? $newsArticle->getStatus())); $newsArticle->setStatus($request->getDataInt('status') ?? $newsArticle->getStatus());
$newsArticle->isFeatured = (bool) ($request->getData('featured') ?? $newsArticle->isFeatured); $newsArticle->isFeatured = $request->getDataBool('featured') ?? $newsArticle->isFeatured;
$newsArticle->unit = $request->getData('unit', 'int'); $newsArticle->unit = $request->getDataInt('unit');
$newsArticle->app = $request->getData('app', 'int'); $newsArticle->app = $request->getDataInt('app');
return $newsArticle; return $newsArticle;
} }
@ -255,7 +255,10 @@ final class ApiController extends Controller
$request->getOrigin() $request->getOrigin()
); );
$mediaObject = MediaMapper::get()->where('id', (int) $media)->execute(); /** @var \Modules\Media\Models\Media $mediaObject */
$mediaObject = MediaMapper::get()
->where('id', (int) $media)
->execute();
$ref = new Reference(); $ref = new Reference();
$ref->source = new NullMedia((int) $media); $ref->source = new NullMedia((int) $media);
@ -322,13 +325,13 @@ final class ApiController extends Controller
$newsArticle = new NewsArticle(); $newsArticle = new NewsArticle();
$newsArticle->createdBy = new NullAccount($request->header->account); $newsArticle->createdBy = new NullAccount($request->header->account);
$newsArticle->publish = new \DateTime((string) ($request->getData('publish') ?? 'now')); $newsArticle->publish = new \DateTime((string) ($request->getData('publish') ?? 'now'));
$newsArticle->title = (string) ($request->getData('title') ?? ''); $newsArticle->title = $request->getDataString('title') ?? '';
$newsArticle->plain = (string) ($request->getData('plain') ?? ''); $newsArticle->plain = $request->getDataString('plain') ?? '';
$newsArticle->content = Markdown::parse((string) ($request->getData('plain') ?? '')); $newsArticle->content = Markdown::parse($request->getDataString('plain') ?? '');
$newsArticle->setLanguage(\strtolower((string) ($request->getData('lang') ?? $request->getLanguage()))); $newsArticle->setLanguage(\strtolower((string) ($request->getData('lang') ?? $request->getLanguage())));
$newsArticle->setType((int) ($request->getData('type') ?? NewsType::ARTICLE)); $newsArticle->setType($request->getDataInt('type') ?? NewsType::ARTICLE);
$newsArticle->setStatus((int) ($request->getData('status') ?? NewsStatus::VISIBLE)); $newsArticle->setStatus($request->getDataInt('status') ?? NewsStatus::VISIBLE);
$newsArticle->isFeatured = (bool) ($request->getData('featured') ?? true); $newsArticle->isFeatured = $request->getDataBool('featured') ?? true;
// allow comments // allow comments
if (!empty($request->getData('allow_comments')) if (!empty($request->getData('allow_comments'))

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News * @package Modules\News
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -33,7 +33,7 @@ use phpOMS\Views\View;
* News controller class. * News controller class.
* *
* @package Modules\News * @package Modules\News
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */
@ -71,13 +71,13 @@ final class BackendController extends Controller implements DashboardElementInte
$objs = []; $objs = [];
if ($request->getData('ptype') === 'p') { if ($request->getData('ptype') === 'p') {
/** @var \Modules\News\Models\NewsArticle[] $objs */ /** @var \Modules\News\Models\NewsArticle[] $objs */
$objs = $mapperQuery->where('id', (int) ($request->getData('id') ?? 0), '<') $objs = $mapperQuery->where('id', $request->getDataInt('id') ?? 0, '<')
->limit(25)->execute(); ->limit(25)->execute();
$view->setData('news', $objs); $view->setData('news', $objs);
} elseif ($request->getData('ptype') === 'n') { } elseif ($request->getData('ptype') === 'n') {
/** @var \Modules\News\Models\NewsArticle[] $objs */ /** @var \Modules\News\Models\NewsArticle[] $objs */
$objs = $mapperQuery->where('id', (int) ($request->getData('id') ?? 0), '>') $objs = $mapperQuery->where('id', $request->getDataInt('id') ?? 0, '>')
->limit(25)->execute(); ->limit(25)->execute();
$view->setData('news', $objs); $view->setData('news', $objs);
@ -246,12 +246,12 @@ final class BackendController extends Controller implements DashboardElementInte
if ($request->getData('ptype') === 'p') { if ($request->getData('ptype') === 'p') {
$view->setData('news', $view->setData('news',
$mapperQuery->where('id', (int) ($request->getData('id') ?? 0), '<') $mapperQuery->where('id', $request->getDataInt('id') ?? 0, '<')
->limit(25)->execute() ->limit(25)->execute()
); );
} elseif ($request->getData('ptype') === 'n') { } elseif ($request->getData('ptype') === 'n') {
$view->setData('news', $view->setData('news',
$mapperQuery->where('id', (int) ($request->getData('id') ?? 0), '>') $mapperQuery->where('id', $request->getDataInt('id') ?? 0, '>')
->limit(25)->execute() ->limit(25)->execute()
); );
} else { } else {
@ -285,11 +285,11 @@ final class BackendController extends Controller implements DashboardElementInte
if ($request->getData('ptype') === 'p') { if ($request->getData('ptype') === 'p') {
$view->setData('news', $view->setData('news',
NewsArticleMapper::getAll()->where('id', (int) ($request->getData('id') ?? 0), '<')->where('status', NewsStatus::DRAFT)->limit(25)->execute() NewsArticleMapper::getAll()->where('id', $request->getDataInt('id') ?? 0, '<')->where('status', NewsStatus::DRAFT)->limit(25)->execute()
); );
} elseif ($request->getData('ptype') === 'n') { } elseif ($request->getData('ptype') === 'n') {
$view->setData('news', $view->setData('news',
NewsArticleMapper::getAll()->where('id', (int) ($request->getData('id') ?? 0), '>')->where('status', NewsStatus::DRAFT)->limit(25)->execute() NewsArticleMapper::getAll()->where('id', $request->getDataInt('id') ?? 0, '>')->where('status', NewsStatus::DRAFT)->limit(25)->execute()
); );
} else { } else {
$view->setData('news', NewsArticleMapper::getAll()->where('id', 0, '>')->where('status', NewsStatus::DRAFT)->limit(25)->execute()); $view->setData('news', NewsArticleMapper::getAll()->where('id', 0, '>')->where('status', NewsStatus::DRAFT)->limit(25)->execute());
@ -357,7 +357,7 @@ final class BackendController extends Controller implements DashboardElementInte
$tagSelector = new \Modules\Tag\Theme\Backend\Components\TagSelector\BaseView($this->app->l11nManager, $request, $response); $tagSelector = new \Modules\Tag\Theme\Backend\Components\TagSelector\BaseView($this->app->l11nManager, $request, $response);
$view->addData('tagSelector', $tagSelector); $view->addData('tagSelector', $tagSelector);
$view->addData('news', NewsArticleMapper::get()->where('id', (int) ($request->getData('id') ?? 0))->execute()); $view->addData('news', NewsArticleMapper::get()->where('id', $request->getDataInt('id') ?? 0)->execute());
return $view; return $view;
} }

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News * @package Modules\News
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -20,7 +20,7 @@ use phpOMS\Module\ModuleAbstract;
* News controller class. * News controller class.
* *
* @package Modules\News * @package Modules\News
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Models * @package Modules\News\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -27,7 +27,7 @@ use phpOMS\Stdlib\Base\Exception\InvalidEnumValue;
* News article class. * News article class.
* *
* @package Modules\News\Models * @package Modules\News\Models
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Models * @package Modules\News\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -24,7 +24,7 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
* News mapper class. * News mapper class.
* *
* @package Modules\News\Models * @package Modules\News\Models
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Models * @package Modules\News\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -18,7 +18,7 @@ namespace Modules\News\Models;
* Null model * Null model
* *
* @package Modules\News\Models * @package Modules\News\Models
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Models * @package Modules\News\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -20,7 +20,7 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
* News mapper class. * News mapper class.
* *
* @package Modules\News\Models * @package Modules\News\Models
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Models * @package Modules\News\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -20,7 +20,7 @@ use phpOMS\Stdlib\Base\Enum;
* News type status. * News type status.
* *
* @package Modules\News\Models * @package Modules\News\Models
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Models * @package Modules\News\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -20,7 +20,7 @@ use phpOMS\Stdlib\Base\Enum;
* News type enum. * News type enum.
* *
* @package Modules\News\Models * @package Modules\News\Models
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Models * @package Modules\News\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -18,7 +18,7 @@ namespace Modules\News\Models;
* Null model * Null model
* *
* @package Modules\News\Models * @package Modules\News\Models
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Models * @package Modules\News\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -18,7 +18,7 @@ namespace Modules\News\Models;
* Null model * Null model
* *
* @package Modules\News\Models * @package Modules\News\Models
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News\Models * @package Modules\News\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -20,7 +20,7 @@ use phpOMS\Stdlib\Base\Enum;
* Permision state enum. * Permision state enum.
* *
* @package Modules\News\Models * @package Modules\News\Models
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\Localization * @package Modules\Localization
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News * @package Modules\News
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -35,7 +35,7 @@ $newsList = $this->getData('news') ?? [];
<?php <?php
$count = 0; $count = 0;
foreach ($newsList as $key => $news) : ++$count; foreach ($newsList as $key => $news) : ++$count;
$url = UriFactory::build('{/lang}/{/app}/news/article?{?}&id=' . $news->getId()); $url = UriFactory::build('{/base}/news/article?{?}&id=' . $news->getId());
$color = 'darkred'; $color = 'darkred';
if ($news->getType() === NewsType::ARTICLE) { $color = 'green'; } if ($news->getType() === NewsType::ARTICLE) { $color = 'green'; }
@ -66,7 +66,7 @@ $newsList = $this->getData('news') ?? [];
</table> </table>
</div> </div>
<div class="portlet-foot"> <div class="portlet-foot">
<a class="button" href="<?= UriFactory::build('{/lang}/{/app}/news/dashboard?{?}'); ?>"><?= $this->getHtml('More', '0', '0'); ?></a> <a class="button" href="<?= UriFactory::build('{/base}/news/dashboard?{?}'); ?>"><?= $this->getHtml('More', '0', '0'); ?></a>
</div> </div>
</div> </div>
</div> </div>

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News * @package Modules\News
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News * @package Modules\News
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -84,12 +84,12 @@ echo $this->getData('nav')->render(); ?>
$count = 0; $count = 0;
foreach ($newsList as $key => $news) : ++$count; foreach ($newsList as $key => $news) : ++$count;
$url = UriFactory::build('{/lang}/{/app}/news/article?{?}&id=' . $news->getId()); $url = UriFactory::build('{/base}/news/article?{?}&id=' . $news->getId());
?> ?>
<tr tabindex="0" data-href="<?= $url; ?>"> <tr tabindex="0" data-href="<?= $url; ?>">
<td><span class="tag"><?= $this->getHtml('TYPE' . $news->getType()); ?></span></a> <td><span class="tag"><?= $this->getHtml('TYPE' . $news->getType()); ?></span></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($news->title); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($news->title); ?></a>
<td><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/profile/single?{?}&for=' . $news->createdBy->getId()); ?>"><?= $this->printHtml($news->createdBy->name2 . ', ' . $news->createdBy->name1); ?></a> <td><a class="content" href="<?= UriFactory::build('{/base}/profile/single?{?}&for=' . $news->createdBy->getId()); ?>"><?= $this->printHtml($news->createdBy->name2 . ', ' . $news->createdBy->name1); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($news->publish->format('Y-m-d')); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($news->publish->format('Y-m-d')); ?></a>
<?php endforeach; ?> <?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News * @package Modules\News
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -87,7 +87,7 @@ echo $this->getData('nav')->render(); ?>
<tr> <tr>
<td> <td>
<?php if ($isNewArticle) : ?> <?php if ($isNewArticle) : ?>
<a href="<?= UriFactory::build('{/lang}/{/app}//news/dashboard'); ?>" class="button"><?= $this->getHtml('Delete', '0', '0'); ?></a> <a href="<?= UriFactory::build('{/base}//news/dashboard'); ?>" class="button"><?= $this->getHtml('Delete', '0', '0'); ?></a>
<?php else : ?> <?php else : ?>
<input type="submit" name="deleteButton" id="iDeleteButton" value="<?= $this->getHtml('Delete', '0', '0'); ?>"> <input type="submit" name="deleteButton" id="iDeleteButton" value="<?= $this->getHtml('Delete', '0', '0'); ?>">
<?php endif; ?> <?php endif; ?>

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News * @package Modules\News
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -27,7 +27,7 @@ echo $this->getData('nav')->render(); ?>
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<?php foreach ($newsList as $news) : <?php foreach ($newsList as $news) :
$url = UriFactory::build('{/lang}/{/app}/news/article?id=' . $news->getId()); $url = UriFactory::build('{/base}/news/article?id=' . $news->getId());
$profile = UriFactory::build('profile/single?{?}&id=' . $news->createdBy->getId()); $profile = UriFactory::build('profile/single?{?}&id=' . $news->createdBy->getId());
?> ?>
<div class="portlet"> <div class="portlet">

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News * @package Modules\News
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -84,12 +84,12 @@ echo $this->getData('nav')->render(); ?>
$count = 0; $count = 0;
foreach ($newsList as $key => $news) : ++$count; foreach ($newsList as $key => $news) : ++$count;
$url = UriFactory::build('{/lang}/{/app}/news/edit?{?}&id=' . $news->getId()); $url = UriFactory::build('{/base}/news/edit?{?}&id=' . $news->getId());
?> ?>
<tr tabindex="0" data-href="<?= $url; ?>"> <tr tabindex="0" data-href="<?= $url; ?>">
<td><span class="tag"><?= $this->getHtml('TYPE' . $news->getType()); ?></span></a> <td><span class="tag"><?= $this->getHtml('TYPE' . $news->getType()); ?></span></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($news->title); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($news->title); ?></a>
<td><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/profile/single?{?}&for=' . $news->createdBy->getId()); ?>"><?= $this->printHtml($news->createdBy->name2 . ', ' . $news->createdBy->name1); ?></a> <td><a class="content" href="<?= UriFactory::build('{/base}/profile/single?{?}&for=' . $news->createdBy->getId()); ?>"><?= $this->printHtml($news->createdBy->name2 . ', ' . $news->createdBy->name1); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($news->publish->format('Y-m-d')); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($news->publish->format('Y-m-d')); ?></a>
<?php endforeach; ?> <?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>

View File

@ -6,7 +6,7 @@
* *
* @package Modules\News * @package Modules\News
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -44,12 +44,12 @@ echo $this->getData('nav')->render(); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php $files = $news->getMedia(); foreach ($files as $file) : ?> <?php $files = $news->getMedia(); foreach ($files as $file) : ?>
<span><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/media/single?id=' . $file->getId());?>"><?= $file->name; ?></a></span> <span><a class="content" href="<?= UriFactory::build('{/base}/media/single?id=' . $file->getId());?>"><?= $file->name; ?></a></span>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php if ($editable) : ?> <?php if ($editable) : ?>
<div class="col-xs-6 end-xs plain-grid"> <div class="col-xs-6 end-xs plain-grid">
<a tabindex="0" class="button" href="<?= UriFactory::build('{/lang}/{/app}/news/edit?id=' . $news->getId()); ?>"><?= $this->getHtml('Edit'); ?></a> <a tabindex="0" class="button" href="<?= UriFactory::build('{/base}/news/edit?id=' . $news->getId()); ?>"><?= $this->getHtml('Edit'); ?></a>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -6,7 +6,7 @@
* *
* @package tests * @package tests
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package Modules/tests * @package Modules/tests
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */
@ -20,7 +20,7 @@ namespace tests;
* Autoloader class. * Autoloader class.
* *
* @package tests * @package tests
* @license OMS License 1.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package tests * @package tests
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package tests * @package tests
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package tests * @package tests
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package tests * @package tests
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package tests * @package tests
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package tests * @package tests
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */

View File

@ -6,7 +6,7 @@
* *
* @package tests * @package tests
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 2.0
* @version 1.0.0 * @version 1.0.0
* @link https://jingga.app * @link https://jingga.app
*/ */