PHP 클래스 BookStack\Role

상속: extends Illuminate\Database\Eloquent\Model
파일 보기 프로젝트 열기: ssddanbrown/bookstack 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$fillable

공개 메소드들

메소드 설명
attachPermission ( RolePermission $permission ) Add a permission to this role.
detachPermission ( RolePermission $permission ) Detach a single permission from this role.
getRole ( $roleName ) : Role Get the role object for the specified role.
getSystemRole ( $roleName ) : Role Get the role object for the specified system role.
hasPermission ( $permissionName ) : boolean Check if this role has a permission.
jointPermissions ( ) : Illuminate\Database\Eloquent\Relations\HasMany Get all related JointPermissions.
permissions ( ) The RolePermissions that belong to the role.
users ( ) The roles that belong to the role.
visible ( ) : mixed Get all visible roles

메소드 상세

attachPermission() 공개 메소드

Add a permission to this role.
public attachPermission ( RolePermission $permission )
$permission RolePermission

detachPermission() 공개 메소드

Detach a single permission from this role.
public detachPermission ( RolePermission $permission )
$permission RolePermission

getRole() 공개 정적인 메소드

Get the role object for the specified role.
public static getRole ( $roleName ) : Role
$roleName
리턴 Role

getSystemRole() 공개 정적인 메소드

Get the role object for the specified system role.
public static getSystemRole ( $roleName ) : Role
$roleName
리턴 Role

hasPermission() 공개 메소드

Check if this role has a permission.
public hasPermission ( $permissionName ) : boolean
$permissionName
리턴 boolean

jointPermissions() 공개 메소드

Get all related JointPermissions.
public jointPermissions ( ) : Illuminate\Database\Eloquent\Relations\HasMany
리턴 Illuminate\Database\Eloquent\Relations\HasMany

permissions() 공개 메소드

The RolePermissions that belong to the role.
public permissions ( )

users() 공개 메소드

The roles that belong to the role.
public users ( )

visible() 공개 정적인 메소드

Get all visible roles
public static visible ( ) : mixed
리턴 mixed

프로퍼티 상세

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

protected $fillable