PHP 클래스 Pagekit\User\Model\User

상속: implements Pagekit\Auth\UserInterface, implements JsonSerializable, use trait Pagekit\System\Model\DataModelTrait, use trait UserModelTrait
파일 보기 프로젝트 열기: pagekit/pagekit 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$activation
$email
$id
$login
$name
$password
$registered
$status
$url
$username

보호된 프로퍼티들

프로퍼티 타입 설명
$permissions array

공개 메소드들

메소드 설명
getId ( )
getPassword ( )
getStatusText ( )
getStatuses ( )
getUsername ( )
hasAccess ( string $expression ) : boolean Check if the user has access for a provided access expression.
hasPermission ( string $permission ) : boolean Check if the user has access for a provided permission identifier
isActive ( ) : boolean Check if the user is active.
isAdministrator ( ) : boolean Check if the user has the administrator role.
isAnonymous ( ) : boolean Check if the user has the anonymous role.
isAuthenticated ( ) : boolean Check if the user has the authenticated role.
isBlocked ( ) : boolean Check if the user is blocked.
jsonSerialize ( )
validate ( )

메소드 상세

getId() 공개 메소드

public getId ( )

getPassword() 공개 메소드

public getPassword ( )

getStatusText() 공개 메소드

public getStatusText ( )

getStatuses() 공개 정적인 메소드

public static getStatuses ( )

getUsername() 공개 메소드

public getUsername ( )

hasAccess() 공개 메소드

Expression forms: - a single permission string starting with a letter and consisting of letters, numbers and characters .:-_ and whitespace - a boolean expression with multiple permissions and operators like &&, || and (...) parenthesis Examples: - a single permission string can be "create_posts", "create posts", "posts:create" etc. - a boolean expression with multiple permissions boolean expression can be "create_posts && delete_posts", "(create posts && delete posts) || manage posts" etc.
public hasAccess ( string $expression ) : boolean
$expression string
리턴 boolean

hasPermission() 공개 메소드

Check if the user has access for a provided permission identifier
public hasPermission ( string $permission ) : boolean
$permission string
리턴 boolean

isActive() 공개 메소드

Check if the user is active.
public isActive ( ) : boolean
리턴 boolean

isAdministrator() 공개 메소드

Check if the user has the administrator role.
public isAdministrator ( ) : boolean
리턴 boolean

isAnonymous() 공개 메소드

Check if the user has the anonymous role.
public isAnonymous ( ) : boolean
리턴 boolean

isAuthenticated() 공개 메소드

Check if the user has the authenticated role.
public isAuthenticated ( ) : boolean
리턴 boolean

isBlocked() 공개 메소드

Check if the user is blocked.
public isBlocked ( ) : boolean
리턴 boolean

jsonSerialize() 공개 메소드

public jsonSerialize ( )

validate() 공개 메소드

public validate ( )

프로퍼티 상세

$activation 공개적으로 프로퍼티

public $activation

$email 공개적으로 프로퍼티

public $email

$id 공개적으로 프로퍼티

public $id

$login 공개적으로 프로퍼티

public $login

$name 공개적으로 프로퍼티

public $name

$password 공개적으로 프로퍼티

public $password

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

protected array $permissions
리턴 array

$registered 공개적으로 프로퍼티

public $registered

$status 공개적으로 프로퍼티

public $status

$url 공개적으로 프로퍼티

public $url

$username 공개적으로 프로퍼티

public $username