User_AlwaysAuth_Model Class Reference

When we want to force a user to have all rights, we use an instance of this "super user" model. More...

Inheritance diagram for User_AlwaysAuth_Model:
User_Model BaseUser_Model Object_Model BaseObject_Model

Public Member Functions

 __construct ()
 Constructs a new AlwaysAuth user.
 set_authorized_for ($type, $value)
 If you want to start out with an "auth me for everything" but gradually deny some rights, this is the method you are looking for.
 get_permission_regexp ()
 Overwrite permission quarks for User_AlwaysAuth to get an always matching regexp.
 logged_in ()
 Returns true if logged in.

Detailed Description

When we want to force a user to have all rights, we use an instance of this "super user" model.

It is practical for tests, but also CLI scripts which usually have no concept of a user executing it.


Member Function Documentation

User_AlwaysAuth_Model::get_permission_regexp (  ) 

Overwrite permission quarks for User_AlwaysAuth to get an always matching regexp.

Returns:
string

Reimplemented from User_Model.

User_AlwaysAuth_Model::logged_in (  ) 

Returns true if logged in.

Returns:
boolean always true (normal users are logged in, notauth overrides)

Reimplemented from User_Model.

User_AlwaysAuth_Model::set_authorized_for ( type,
value 
)

If you want to start out with an "auth me for everything" but gradually deny some rights, this is the method you are looking for.

Exceptions:
Exception 
Parameters:
$type string
$value bool

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1