Chyrp

Visitor

The model for the currently browsing User.  Group falls back to whatever group is set as the “Guest Group”.

See Also

User

Summary
Visitor The model for the currently browsing User.  Group falls back to whatever group is set as the “Guest Group”.
Variables
$id The ID of the currently visiting “user”.  0 if not logged in.
Functions
__construct Checks if a valid user is logged in.
group Returns the user’s Group or the “Guest Group”.
current Returns a singleton reference to the current visitor.

Variables

$id

public $id

The ID of the currently visiting “user”.  0 if not logged in.

Functions

__construct

public function __construct()

Checks if a valid user is logged in.

group

public function group()

Returns the user’s Group or the “Guest Group”.

current

public static function & current()

Returns a singleton reference to the current visitor.