Provides a class for managing anonymous users.

This class is not an entity, as fields cannot be added to an anonymous user, it has no URL, and it cannot be saved to the database. Despite this, it includes a large amount of consistency with the normal User class to allow use of the AnonymousUser class in places where different kinds of users are listed together.

Hierarchy

Expanded class hierarchy of AnonymousUser

File

core/includes/anonymous.inc, line 11

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
AnonymousUser::$cache public property
AnonymousUser::$hostname public property
AnonymousUser::$name public property
AnonymousUser::$roles public property
AnonymousUser::$uid public property
AnonymousUser::id public function Provides the UID for consistency with User entities.
AnonymousUser::label public function Provides the anonymous user name for consistency with User entities.
AnonymousUser::uri public function Provides the anonymous user URI for consistency with User entities.
AnonymousUser::__contruct function Constructor for an anonymous user object.