PHP 클래스 Aimeos\Shop\Base\Support

파일 보기 프로젝트 열기: aimeos/aimeos-laravel

공개 메소드들

메소드 설명
__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