PHP Трейт Adldap\Models\Traits\HasMemberOfTrait

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

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

Метод Описание
addGroup ( string | Group $group ) : boolean Adds the current model to the specified group.
getGroupNames ( boolean $recursive = false ) : array Returns the models groups names in a single dimension array.
getGroups ( array $fields = [], boolean $recursive = false ) : Collection Returns the models groups that it is apart of.
inGroup ( mixed $group, boolean $recursive = false ) : boolean Determine if the current model is a member of the specified group(s).
removeGroup ( string | Group $group ) : boolean Removes the current model from the specified group.

Защищенные методы

Метод Описание
validateGroup ( Group | string $group, Group $parent ) : boolean Validates if the specified group is the given parent instance.

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

addGroup() публичный метод

Adds the current model to the specified group.
public addGroup ( string | Group $group ) : boolean
$group string | Adldap\Models\Group
Результат boolean

getGroupNames() публичный метод

If a recursive option is given, groups of groups are retrieved and then merged with the resulting collection.
public getGroupNames ( boolean $recursive = false ) : array
$recursive boolean
Результат array

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

If a recursive option is given, groups of groups are retrieved and then merged with the resulting collection. https://msdn.microsoft.com/en-us/library/ms677099(v=vs.85).aspx
public getGroups ( array $fields = [], boolean $recursive = false ) : Collection
$fields array
$recursive boolean
Результат Illuminate\Support\Collection

inGroup() публичный метод

Determine if the current model is a member of the specified group(s).
public inGroup ( mixed $group, boolean $recursive = false ) : boolean
$group mixed
$recursive boolean
Результат boolean

removeGroup() публичный метод

Removes the current model from the specified group.
public removeGroup ( string | Group $group ) : boolean
$group string | Adldap\Models\Group
Результат boolean

validateGroup() защищенный метод

Validates if the specified group is the given parent instance.
protected validateGroup ( Group | string $group, Group $parent ) : boolean
$group Adldap\Models\Group | string
$parent Adldap\Models\Group
Результат boolean