PHP Класс Aimeos\Shop\Base\Support

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Context $context, Locale $locale ) Initializes the object
checkGroup ( string $userid, string | array $groupcodes ) : boolean Checks if the user with the given ID is in the specified group
getGroups ( Aimeos\MShop\Context\Item\Iface $context )

Описание методов

__construct() публичный Метод

Initializes the object
public __construct ( Context $context, Locale $locale )
$context Context Context provider
$locale Locale Locale provider

checkGroup() публичный Метод

Checks if the user with the given ID is in the specified group
public checkGroup ( string $userid, string | array $groupcodes ) : boolean
$userid string Unique user ID
$groupcodes string | array Unique user/customer group codes that are allowed
Результат boolean True if user is part of the group, false if not

getGroups() публичный Метод

public getGroups ( Aimeos\MShop\Context\Item\Iface $context )
$context Aimeos\MShop\Context\Item\Iface