PHP 트레잇 Adldap\Models\Traits\HasMemberOfTrait

파일 보기 프로젝트 열기: adldap2/adldap2

공개 메소드들

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