Methods

All methods in the Solar_Role_Adapter_Sql class.

Public

__call()

Provides magic "isRoleName()" to map to "is('role_name')".

__construct()

Constructor.

__destruct()

Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().

add()

Appends a single role to the existing list of roles.

addList()

Appends a list of roles to the existing list of roles.

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

fetch()

Fetches the roles for a user.

getList()

Gets the list of all loaded roles for the user.

is()

Check to see if a user is in a role.

isAll()

Check to see if a user is in all of the listed roles.

isAny()

Check to see if a user is in any of the listed roles.

load()

Load the list of roles for the given user from the adapter.

locale()

Looks up class-specific locale strings based on a key.

reset()

Resets the role list to nothing.

setList()

Sets the list, overriding what is there already.

Protected

_buildConfig()

Builds and returns the default config for a class, including all configs inherited from its parents.

_exception()

Convenience method for returning exceptions with localized text.

_postConfig()

A hook that activates after _buildConfig() in the constructor.

_postConstruct()

Post-construction tasks to complete object construction.

_preConfig()

A hook that activates before _buildConfig() in the constructor.

Private

None.



Local