Method | Description | |
---|---|---|
__construct ( ) | Class constructor. | |
__destruct ( ) | Class destructor. | |
assertIdenticalEntities ( ElggEntity $first, ElggEntity $second, string $message = '%s' ) : boolean | Will trigger a pass if the two entity parameters have the same "value" and same type. Otherwise a fail. | |
replaceSession ( ElggUser $user = null ) : ElggUser | null | Replace the current user session |
public __destruct ( ) |
public assertIdenticalEntities ( ElggEntity $first, ElggEntity $second, string $message = '%s' ) : boolean | ||
$first | ElggEntity | Entity to compare. |
$second | ElggEntity | Entity to compare. |
$message | string | Message to display. |
return | boolean |
public replaceSession ( ElggUser $user = null ) : ElggUser | null | ||
$user | ElggUser | New user to login as (null to log out) |
return | ElggUser | null | Removed session user (or null) |