31 lines
915 B
PHP
31 lines
915 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KupShop\ArticlesBundle\AdminRegister;
|
|
|
|
use KupShop\AdminBundle\AdminRegister\IAdminRegisterDynamic;
|
|
use KupShop\AdminBundle\AdminRegister\IAdminRegisterStatic;
|
|
use KupShop\POSBundle\AdminRegister\AdminRegister;
|
|
|
|
class ArticlesRegister extends AdminRegister implements IAdminRegisterDynamic, IAdminRegisterStatic
|
|
{
|
|
public static function getMenu(): array
|
|
{
|
|
return [
|
|
static::createMenuItem('contentMenu/articlesMenu', [
|
|
'name' => 'ArticlesRelatedTypes',
|
|
'left' => 's=menu.php&type=ArticlesRelatedTypes',
|
|
'right' => 's=list.php&type=ArticlesRelatedTypes',
|
|
]),
|
|
];
|
|
}
|
|
|
|
public static function getPermissions(): array
|
|
{
|
|
return [
|
|
static::createPermissions('ArticlesRelatedTypes', [\Modules::ARTICLES_RELATED_TYPES], superuser: true),
|
|
];
|
|
}
|
|
}
|