PHP Class Psecio\PropAuth\Subject

Show file Open project: psecio/propauth

Protected Properties

Property Type Description
$authStatus
$policies
$subject

Public Methods

Method Description
__construct ( $subject, $policies = null )
__get ( $name )
__isset ( $name )
can ( $policyName, $addl = null )
cannot ( $policyName, $addl = null )
getSubject ( )
isAuthed ( )
setAuth ( $status )
setPolicies ( PolicySet $policySet )

Method Details

__construct() public method

public __construct ( $subject, $policies = null )

__get() public method

public __get ( $name )

__isset() public method

public __isset ( $name )

can() public method

public can ( $policyName, $addl = null )

cannot() public method

public cannot ( $policyName, $addl = null )

getSubject() public method

public getSubject ( )

isAuthed() public method

public isAuthed ( )

setAuth() public method

public setAuth ( $status )

setPolicies() public method

public setPolicies ( PolicySet $policySet )
$policySet PolicySet

Property Details

$authStatus protected property

protected $authStatus

$policies protected property

protected $policies

$subject protected property

protected $subject