Commit 41a1540d authored by Tino Goratsch's avatar Tino Goratsch

refs #8

- replaced all usages of UserModel::getEntriesPerPage() with ResultsPerPage::getResultsPerPage()
parent 060a9f29
......@@ -69,6 +69,10 @@ abstract class AbstractWidgetAction implements ActionInterface
* @var Response
*/
protected $response;
/**
* @var Core\Helpers\ResultsPerPage
*/
protected $resultsPerPage;
/**
* WidgetController constructor.
......@@ -90,6 +94,7 @@ abstract class AbstractWidgetAction implements ActionInterface
$this->config = $context->getConfig();
$this->appPath = $context->getAppPath();
$this->response = $context->getResponse();
$this->resultsPerPage = $context->getResultsPerPage();
}
/**
......
......@@ -58,7 +58,8 @@ class FrontendContext extends Core\Controller\Context\WidgetContext
$context->getView(),
$context->getConfig(),
$context->getAppPath(),
$context->getResponse()
$context->getResponse(),
$context->getResultsPerPage()
);
$this->assets = $assets;
......
......@@ -7,6 +7,7 @@ namespace ACP3\Core\Controller\Context;
use ACP3\Core\ACL;
use ACP3\Core\Environment\ApplicationPath;
use ACP3\Core\Helpers\ResultsPerPage;
use ACP3\Core\Http\RequestInterface;
use ACP3\Core\I18n\Translator;
use ACP3\Core\Modules;
......@@ -77,6 +78,10 @@ class WidgetContext
* @var \Symfony\Component\HttpFoundation\Response
*/
private $response;
/**
* @var ResultsPerPage
*/
private $resultsPerPage;
/**
* WidgetContext constructor.
......@@ -94,6 +99,7 @@ class WidgetContext
* @param \ACP3\Core\Settings\SettingsInterface $config
* @param \ACP3\Core\Environment\ApplicationPath $appPath
* @param Response $response
* @param ResultsPerPage $resultsPerPage
*/
public function __construct(
ContainerInterface $container,
......@@ -108,7 +114,8 @@ class WidgetContext
View $view,
SettingsInterface $config,
ApplicationPath $appPath,
Response $response
Response $response,
ResultsPerPage $resultsPerPage
) {
$this->container = $container;
$this->eventDispatcher = $eventDispatcher;
......@@ -123,6 +130,7 @@ class WidgetContext
$this->config = $config;
$this->appPath = $appPath;
$this->response = $response;
$this->resultsPerPage = $resultsPerPage;
}
/**
......@@ -228,4 +236,12 @@ class WidgetContext
{
return $this->response;
}
/**
* @return ResultsPerPage
*/
public function getResultsPerPage()
{
return $this->resultsPerPage;
}
}
......@@ -4,13 +4,6 @@
* See the LICENCE file at the top-level module directory for licencing details.
*/
/**
* Created by PhpStorm.
* User: tinog
* Date: 07.11.2016
* Time: 01:28
*/
namespace ACP3\Core\Helpers;
......@@ -44,28 +37,17 @@ class ResultsPerPage
public function getResultsPerPage($moduleName)
{
if (!isset($this->resultsPerPage[$moduleName])) {
$moduleName = $this->addResultsToCache($moduleName);
}
$moduleSettings = $this->settings->getSettings($moduleName);
return (int)$this->resultsPerPage[$moduleName];
}
if (!empty($moduleSettings['entries'])) {
$this->resultsPerPage[$moduleName] = $moduleSettings['entries'];
} else {
$moduleName = Schema::MODULE_NAME;
/**
* @param string $moduleName
* @return string
*/
protected function addResultsToCache($moduleName)
{
$moduleSettings = $this->settings->getSettings($moduleName);
if (!empty($moduleName['entries'])) {
$this->resultsPerPage[$moduleName] = $moduleSettings['entries'];
} else {
$moduleName = Schema::MODULE_NAME;
$this->getResultsPerPage($moduleName);
$this->getResultsPerPage($moduleName);
}
}
return $moduleName;
return (int)$this->resultsPerPage[$moduleName];
}
}
......@@ -6,7 +6,6 @@ use ACP3\Core\Controller\AreaEnum;
use ACP3\Core\Http\RequestInterface;
use ACP3\Core\I18n\Translator;
use ACP3\Core\Router\RouterInterface;
use ACP3\Modules\ACP3\Users\Model\UserModel;
/**
* Class Pagination
......@@ -69,15 +68,12 @@ class Pagination
/**
* Pagination constructor.
*
* @param \ACP3\Modules\ACP3\Users\Model\UserModel $user
* @param \ACP3\Core\Breadcrumb\Title $title
* @param \ACP3\Core\I18n\Translator $translator
* @param \ACP3\Core\Http\RequestInterface $request
* @param \ACP3\Core\Router\RouterInterface $router
* @param Title $title
* @param Translator $translator
* @param RequestInterface $request
* @param RouterInterface $router
*/
public function __construct(
UserModel $user,
Title $title,
Translator $translator,
RequestInterface $request,
......@@ -87,8 +83,6 @@ class Pagination
$this->translator = $translator;
$this->request = $request;
$this->router = $router;
$this->resultsPerPage = $user->getEntriesPerPage();
}
/**
......
......@@ -15,6 +15,7 @@ services:
- '@core.config'
- '@core.environment.application_path'
- '@core.http.response'
- '@core.helpers.results_per_page'
public: false
core.context.admin:
......
......@@ -77,7 +77,6 @@ services:
core.pagination:
class: ACP3\Core\Pagination
arguments:
- '@users.model.user_model'
- '@core.breadcrumb.title'
- '@core.lang'
- '@core.http.request'
......
......@@ -8,7 +8,7 @@ namespace ACP3\Modules\ACP3\Articles\Controller\Admin\Index;
use ACP3\Core;
use ACP3\Modules\ACP3\Articles;
use ACP3\Modules\ACP3\Menus;
use ACP3\Modules\ACP3\System\Installer\Schema;
/**
* Class Index
......@@ -45,7 +45,7 @@ class Index extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setRepository($this->dataGridRepository)
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#acp-table')
->setResourcePathDelete('admin/articles/index/delete')
->setResourcePathEdit('admin/articles/index/edit');
......
......@@ -63,7 +63,7 @@ class Index extends Core\Controller\AbstractFrontendAction
$articles = $this->articleRepository->getAll(
$time,
$this->pagination->getResultsStartOffset(),
$this->user->getEntriesPerPage()
$this->resultsPerPage->getResultsPerPage(Articles\Installer\Schema::MODULE_NAME)
);
$this->pagination->setTotalResults($this->articleRepository->countAll($time));
......
......@@ -8,6 +8,7 @@ namespace ACP3\Modules\ACP3\Categories\Controller\Admin\Index;
use ACP3\Core;
use ACP3\Modules\ACP3\Categories;
use ACP3\Modules\ACP3\System\Installer\Schema;
/**
* Class Index
......@@ -44,7 +45,7 @@ class Index extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setRepository($this->dataGridRepository)
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#acp-table')
->setResourcePathDelete('admin/categories/index/delete')
->setResourcePathEdit('admin/categories/index/edit');
......
......@@ -9,6 +9,7 @@ namespace ACP3\Modules\ACP3\Comments\Controller\Admin\Details;
use ACP3\Core;
use ACP3\Modules\ACP3\Comments;
use ACP3\Modules\ACP3\System;
use ACP3\Modules\ACP3\System\Installer\Schema;
/**
* Class Index
......@@ -61,7 +62,7 @@ class Index extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setResults($comments)
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#acp-table')
->setResourcePathDelete('admin/comments/details/delete/id_' . $id)
->setResourcePathEdit('admin/comments/details/edit');
......
......@@ -8,6 +8,7 @@ namespace ACP3\Modules\ACP3\Comments\Controller\Admin\Index;
use ACP3\Core;
use ACP3\Modules\ACP3\Comments;
use ACP3\Modules\ACP3\System\Installer\Schema;
/**
* Class Index
......@@ -44,7 +45,7 @@ class Index extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setResults($this->commentRepository->getCommentsGroupedByModule())
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#acp-table')
->setResourcePathDelete('admin/comments/index/delete')
->setResourcePathEdit('admin/comments/details/index');
......
......@@ -56,7 +56,7 @@ class Index extends AbstractFrontendAction
$this->modules->getModuleId($module),
$entryId,
$this->pagination->getResultsStartOffset(),
$this->user->getEntriesPerPage()
$this->resultsPerPage->getResultsPerPage(Comments\Installer\Schema::MODULE_NAME)
);
$cComments = count($comments);
......
......@@ -8,6 +8,7 @@ namespace ACP3\Modules\ACP3\Emoticons\Controller\Admin\Index;
use ACP3\Core;
use ACP3\Modules\ACP3\Emoticons;
use ACP3\Modules\ACP3\System\Installer\Schema;
/**
* Class Index
......@@ -41,7 +42,7 @@ class Index extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setRepository($this->dataGridRepository)
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#acp-table')
->setResourcePathDelete('admin/emoticons/index/delete')
->setResourcePathEdit('admin/emoticons/index/edit');
......
......@@ -7,9 +7,8 @@
namespace ACP3\Modules\ACP3\Files\Controller\Admin\Index;
use ACP3\Core;
use ACP3\Modules\ACP3\Categories;
use ACP3\Modules\ACP3\Comments;
use ACP3\Modules\ACP3\Files;
use ACP3\Modules\ACP3\System\Installer\Schema;
/**
* Class Index
......@@ -46,7 +45,7 @@ class Index extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setRepository($this->dataGridRepository)
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#acp-table')
->setResourcePathDelete('admin/files/index/delete')
->setResourcePathEdit('admin/files/index/edit');
......
......@@ -8,6 +8,7 @@ namespace ACP3\Modules\ACP3\Gallery\Controller\Admin\Index;
use ACP3\Core;
use ACP3\Modules\ACP3\Gallery;
use ACP3\Modules\ACP3\System\Installer\Schema;
/**
* Class Edit
......@@ -102,7 +103,7 @@ class Edit extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setResults($pictures)
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#acp-table')
->setResourcePathDelete('admin/gallery/pictures/delete/id_' . $id)
->setResourcePathEdit('admin/gallery/pictures/edit');
......
......@@ -8,6 +8,7 @@ namespace ACP3\Modules\ACP3\Gallery\Controller\Admin\Index;
use ACP3\Core;
use ACP3\Modules\ACP3\Gallery;
use ACP3\Modules\ACP3\System\Installer\Schema;
/**
* Class Index
......@@ -44,7 +45,7 @@ class Index extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setRepository($this->dataGridRepository)
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#acp-table')
->setResourcePathDelete('admin/gallery/index/delete')
->setResourcePathEdit('admin/gallery/index/edit');
......
......@@ -67,7 +67,7 @@ class Index extends AbstractAction
'galleries' => $this->galleryRepository->getAll(
$time,
$this->pagination->getResultsStartOffset(),
$this->user->getEntriesPerPage()
$this->resultsPerPage->getResultsPerPage(Gallery\Installer\Schema::MODULE_NAME)
),
'dateformat' => $this->settings['dateformat'],
'pagination' => $this->pagination->render()
......
......@@ -7,8 +7,8 @@
namespace ACP3\Modules\ACP3\Guestbook\Controller\Admin\Index;
use ACP3\Core;
use ACP3\Modules\ACP3\Emoticons;
use ACP3\Modules\ACP3\Guestbook;
use ACP3\Modules\ACP3\System\Installer\Schema;
/**
* Class Index
......@@ -45,7 +45,7 @@ class Index extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setRepository($this->dataGridRepository)
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#acp-table')
->setResourcePathDelete('admin/guestbook/index/delete')
->setResourcePathEdit('admin/guestbook/index/edit');
......
......@@ -55,7 +55,7 @@ class Index extends AbstractAction
$guestbook = $this->guestbookRepository->getAll(
$this->guestbookSettings['notify'],
$this->pagination->getResultsStartOffset(),
$this->user->getEntriesPerPage()
$this->resultsPerPage->getResultsPerPage(Guestbook\Installer\Schema::MODULE_NAME)
);
$cGuestbook = count($guestbook);
......
......@@ -7,9 +7,8 @@
namespace ACP3\Modules\ACP3\News\Controller\Admin\Index;
use ACP3\Core;
use ACP3\Modules\ACP3\Categories;
use ACP3\Modules\ACP3\Comments;
use ACP3\Modules\ACP3\News;
use ACP3\Modules\ACP3\System\Installer\Schema;
/**
* Class Index
......@@ -46,7 +45,7 @@ class Index extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setRepository($this->dataGridRepository)
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#acp-table')
->setResourcePathDelete('admin/news/index/delete')
->setResourcePathEdit('admin/news/index/edit');
......
......@@ -140,13 +140,13 @@ class Index extends AbstractAction
$categoryId,
$time,
$this->pagination->getResultsStartOffset(),
$this->user->getEntriesPerPage()
$this->resultsPerPage->getResultsPerPage(News\Installer\Schema::MODULE_NAME)
);
} else {
$news = $this->newsRepository->getAll(
$time,
$this->pagination->getResultsStartOffset(),
$this->user->getEntriesPerPage()
$this->resultsPerPage->getResultsPerPage(News\Installer\Schema::MODULE_NAME)
);
}
......
......@@ -8,6 +8,7 @@ namespace ACP3\Modules\ACP3\Newsletter\Controller\Admin\Accounts;
use ACP3\Core;
use ACP3\Modules\ACP3\Newsletter;
use ACP3\Modules\ACP3\System\Installer\Schema;
/**
* Class Index
......@@ -44,7 +45,7 @@ class Index extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setRepository($this->dataGridRepository)
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#acp-table')
->setResourcePathDelete('admin/newsletter/accounts/delete');
......
......@@ -8,6 +8,7 @@ namespace ACP3\Modules\ACP3\Newsletter\Controller\Admin\Index;
use ACP3\Core;
use ACP3\Modules\ACP3\Newsletter;
use ACP3\Modules\ACP3\System\Installer\Schema;
/**
* Class Index
......@@ -44,7 +45,7 @@ class Index extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setRepository($this->dataGridRepository)
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#newsletter-data-grid')
->setResourcePathEdit('admin/newsletter/index/edit')
->setResourcePathDelete('admin/newsletter/index/delete');
......
......@@ -17,7 +17,7 @@ use ACP3\Modules\ACP3\System\Installer\Schema;
class Index extends Core\Controller\AbstractFrontendAction
{
use Core\Cache\CacheResponseTrait;
/**
* @var Core\Pagination
*/
......@@ -56,7 +56,7 @@ class Index extends Core\Controller\AbstractFrontendAction
'newsletters' => $this->newsletterRepository->getAll(
Newsletter\Helper\AccountStatus::ACCOUNT_STATUS_CONFIRMED,
$this->pagination->getResultsStartOffset(),
$this->user->getEntriesPerPage()
$this->resultsPerPage->getResultsPerPage(Newsletter\Installer\Schema::MODULE_NAME)
),
'pagination' => $this->pagination->render()
];
......
......@@ -8,6 +8,7 @@ namespace ACP3\Modules\ACP3\Polls\Controller\Admin\Index;
use ACP3\Core;
use ACP3\Modules\ACP3\Polls;
use ACP3\Modules\ACP3\System\Installer\Schema;
/**
* Class Index
......@@ -44,7 +45,7 @@ class Index extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setRepository($this->dataGridRepository)
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#acp-table')
->setResourcePathDelete('admin/polls/index/delete')
->setResourcePathEdit('admin/polls/index/edit');
......
......@@ -8,6 +8,7 @@ namespace ACP3\Modules\ACP3\Seo\Controller\Admin\Index;
use ACP3\Core;
use ACP3\Modules\ACP3\Seo;
use ACP3\Modules\ACP3\System\Installer\Schema;
/**
* Class Index
......@@ -51,7 +52,7 @@ class Index extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setRepository($this->dataGridRepository)
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#acp-table')
->setResourcePathDelete('admin/seo/index/delete')
->setResourcePathEdit('admin/seo/index/edit');
......
......@@ -12,7 +12,6 @@ use ACP3\Core\Http\RequestInterface;
use ACP3\Core\I18n\Translator;
use ACP3\Core\Router\RouterInterface;
use ACP3\Modules\ACP3\Seo\Helper\MetaStatements;
use ACP3\Modules\ACP3\Users\Model\UserModel;
/**
* Class Pagination
......@@ -27,7 +26,6 @@ class Pagination extends \ACP3\Core\Pagination
/**
* Pagination constructor.
* @param UserModel $user
* @param Title $title
* @param Translator $translator
* @param RequestInterface $request
......@@ -35,14 +33,13 @@ class Pagination extends \ACP3\Core\Pagination
* @param MetaStatements $metaStatements
*/
public function __construct(
UserModel $user,
Title $title,
Translator $translator,
RequestInterface $request,
RouterInterface $router,
MetaStatements $metaStatements
) {
parent::__construct($user, $title, $translator, $request, $router);
parent::__construct($title, $translator, $request, $router);
$this->metaStatements = $metaStatements;
}
......
......@@ -10,7 +10,6 @@ services:
core.pagination:
class: ACP3\Modules\ACP3\Seo\Core\Pagination
arguments:
- '@users.model.user_model'
- '@core.breadcrumb.title'
- '@core.lang'
- '@core.http.request'
......
......@@ -7,7 +7,7 @@
namespace ACP3\Modules\ACP3\Users\Controller\Admin\Index;
use ACP3\Core;
use ACP3\Modules\ACP3\Permissions;
use ACP3\Modules\ACP3\System\Installer\Schema;
use ACP3\Modules\ACP3\Users;
/**
......@@ -45,7 +45,7 @@ class Index extends Core\Controller\AbstractAdminAction
$dataGrid = $this->get('core.helpers.data_grid');
$dataGrid
->setRepository($this->dataGridRepository)
->setRecordsPerPage($this->user->getEntriesPerPage())
->setRecordsPerPage($this->resultsPerPage->getResultsPerPage(Schema::MODULE_NAME))
->setIdentifier('#acp-table')
->setResourcePathDelete('admin/users/index/delete')
->setResourcePathEdit('admin/users/index/edit');
......
......@@ -17,7 +17,7 @@ use ACP3\Modules\ACP3\Users;
class Index extends Core\Controller\AbstractFrontendAction
{
use Core\Cache\CacheResponseTrait;
/**
* @var \ACP3\Core\Pagination
*/
......@@ -53,8 +53,8 @@ class Index extends Core\Controller\AbstractFrontendAction
$this->setCacheResponseCacheable($this->config->getSettings(Schema::MODULE_NAME)['cache_lifetime']);
$users = $this->userRepository->getAll(
$this->pagination->getResultsStartOffset(),
$this->user->getEntriesPerPage()
$this->pagination->getResultsStartOffset(),
$this->resultsPerPage->getResultsPerPage(Users\Installer\Schema::MODULE_NAME)
);
$allUsers = $this->userRepository->countAll();
......
......@@ -53,7 +53,7 @@ class UserModel
protected $userRepository;
/**
* User constructor.
* UserModel constructor.
*
* @param \ACP3\Core\Settings\SettingsInterface $config
* @param \ACP3\Modules\ACP3\Users\Model\Repository\UserRepository $userRepository
......@@ -94,7 +94,7 @@ class UserModel
}
/**
* Gibt den Status von $isUser zurück
* Returns, whether the current user is an authenticated user or not
*
* @return boolean
*/
......@@ -104,7 +104,7 @@ class UserModel
}
/**
* @param $isAuthenticated
* @param boolean $isAuthenticated
* @return $this
*/
public function setIsAuthenticated($isAuthenticated)
......@@ -115,7 +115,7 @@ class UserModel
}
/**
* Gibt die UserId des eingeloggten Benutzers zurück
* Returns the user id of the currently logged in user
* @return integer
*/
public function getUserId()
......@@ -124,7 +124,7 @@ class UserModel
}
/**
* @param $userId
* @param int $userId
* @return $this
*/
public function setUserId($userId)
......@@ -135,7 +135,7 @@ class UserModel
}
/**
* Gibt die eingestellte Standardsprache des Benutzers aus
* Returns the users default language
*
* @return string
*/
......@@ -164,6 +164,7 @@ class UserModel
/**
* @return int
* @deprecated Use the \ACP3\Core\Helpers\ResultsPerPage::getResultsPerPage() method instead. Will be removed in version 4.5.0
*/
public function getEntriesPerPage()
{
......@@ -172,6 +173,7 @@ class UserModel
/**
* @return $this
* @deprecated will be removed in version 4.5.0
*/
public function setEntriesPerPage()
{
......@@ -181,7 +183,7 @@ class UserModel
}
/**
* Gibt aus, ob der aktuell eingeloggte Benutzer der Super User ist, oder nicht
* Returns, whether the currently logged in user is a super user or not
*
* @return boolean
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment