PHP 클래스 Devise\Users\Groups\GroupsRepository

파일 보기 프로젝트 열기: devisephp/cms

보호된 프로퍼티들

프로퍼티 타입 설명
$Group
$User

공개 메소드들

메소드 설명
__construct ( DvsGroup $Group, DvsUser $User )
findById ( integer $id ) : DvsGroup Find group by id
findByName ( string $name ) : DvsGroup Find group by name
groupList ( ) : array List all the groups
groupListForUser ( integer $userId ) : array Get a list of groups for the given user id
groups ( ) : Eloquent\Collection Paginated list of groups

메소드 상세

__construct() 공개 메소드

public __construct ( DvsGroup $Group, DvsUser $User )
$Group DvsGroup
$User DvsUser

findById() 공개 메소드

Find group by id
public findById ( integer $id ) : DvsGroup
$id integer
리턴 DvsGroup

findByName() 공개 메소드

Find group by name
public findByName ( string $name ) : DvsGroup
$name string
리턴 DvsGroup

groupList() 공개 메소드

List all the groups
public groupList ( ) : array
리턴 array

groupListForUser() 공개 메소드

Get a list of groups for the given user id
public groupListForUser ( integer $userId ) : array
$userId integer
리턴 array

groups() 공개 메소드

Paginated list of groups
public groups ( ) : Eloquent\Collection
리턴 Eloquent\Collection

프로퍼티 상세

$Group 보호되어 있는 프로퍼티

protected $Group

$User 보호되어 있는 프로퍼티

protected $User