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 12

Members

Contains filters are case sensitive
Namesort ascending Modifiers Type Description
AnonymousUser::__construct public function Constructor for an anonymous user object.
AnonymousUser::uri public function Provides the anonymous user URI for consistency with User entities. Overrides UserInterface::uri
AnonymousUser::label public function Provides the anonymous user name for consistency with User entities. Overrides UserInterface::label
AnonymousUser::id public function Provides the UID for consistency with User entities. Overrides UserInterface::id
AnonymousUser::createAccess public static function Provides anonymous user createAccess for consistency with User entities. Overrides UserInterface::createAccess
AnonymousUser::access public function Provides anonymous user access for consistency with User entities. Overrides UserInterface::access
AnonymousUser::$uid public property
AnonymousUser::$status public property
AnonymousUser::$roles public property
AnonymousUser::$name public property
AnonymousUser::$hostname public property
AnonymousUser::$cache public property