LSWebUser

Extends \CWebUser

package

Default

Methods

__construct

__construct() 

checkAccess

checkAccess( $operation,  $params = array(),  $allowCaching = true) 

Arguments

$operation

$params

$allowCaching

getFlashes

getFlashes( $delete = true) 

Arguments

$delete

getState

getState(string $key, mixed $defaultValue = null) : mixed|null

Arguments

$key

string

$defaultValue

mixed

Response

mixed|null

getStateKeyPrefix

getStateKeyPrefix() 

hasFlash

hasFlash( $key) 

Arguments

$key

hasState

hasState( $key) 

Arguments

$key

Test if a user is in a group

isInUserGroup(integer $gid) : boolean

Arguments

$gid

integer

Response

boolean

Removes a state variable.

removeState(string $key) 

Arguments

$key

string

setFlash

setFlash( $key,  $value,  $defaultValue = null) 

Arguments

$key

$value

$defaultValue

setState

setState( $key,  $value,  $defaultValue = null) 

Arguments

$key

$value

$defaultValue

Properties

sessionVariable

sessionVariable : 

Type(s)

id

id : integer

The user ID

Type(s)

integer