PrincipalService PrincipalService(
)
|
|
mixed createPrincipal(
$name,
$password,
$language
)
|
|
Creates a Principal.
Returns false if the Principal could not be created.
Parameters:
|
|
$name: |
|
|
|
$password: |
|
|
|
$language: |
|
API Tags:
| Return: | the Principal or false |
Redefined in descendants as:
boolean deleteAttributes(
$principal
)
|
|
Deletes all attributes for the given Principal.
Parameters:
API Tags:
| Return: | true on success otherwise false |
Redefined in descendants as:
boolean deletePrincipal(
$principal
)
|
|
Deletes a Principal.
Returns false if the Principal could not be deleted.
Parameters:
API Tags:
| Return: | true on success otherwise false |
Redefined in descendants as:
array getAllPrincipals(
)
|
|
Get an Array with all available Principals.
API Tags:
| Return: | an array with Principal instances |
Redefined in descendants as:
array getAttributes(
$principal
)
|
|
Returns the Principal Attributes as a key-value mapped Array.
If no Attributes could be found it returns an empty array.
Parameters:
API Tags:
| Return: | the Principal Attributes |
Redefined in descendants as:
mixed getParameter(
$principal,
$parameter
)
|
|
Gets the given Parameter for the Principal.
If the passed Parameter could not be found or is invalid null will be returned.
The allowed Parameter are:
- PRINCIPAL_PARAMETER_PASSWORD
- PRINCIPAL_PARAMETER_ACTIVE
- PRINCIPAL_PARAMETER_LANGUAGE
Parameters:
API Tags:
| Return: | the value or null if not found |
Redefined in descendants as:
mixed lookup(
$principalName
)
|
|
Tries to find a Principal with the given Name.
Returns null if none could be found.
Parameters:
API Tags:
| Return: | a Principal or null |
Redefined in descendants as:
mixed lookupByID(
$principalID
)
|
|
Tries to find a Principal with the given ID.
Returns null if none could be found.
Parameters:
API Tags:
| Return: | a Principal or null |
Redefined in descendants as:
boolean setAttribute(
$principal,
$attribute,
$value
)
|
|
Sets the attribute-value mapping for the given Principal.
Parameters:
|
|
$principal: |
|
|
|
$attribute: |
|
|
|
$value: |
|
API Tags:
| Return: | true on success otherwise false |
Redefined in descendants as:
boolean setParameter(
$principal,
$parameter,
$value
)
|
|
Sets the given Parameter for the Principal.
The allowed Parameter are:
- PRINCIPAL_PARAMETER_PASSWORD
- PRINCIPAL_PARAMETER_ACTIVE
- PRINCIPAL_PARAMETER_LANGUAGE
Parameters:
|
|
$principal: |
|
|
|
$parameter: |
|
|
|
$value: |
|
API Tags:
| Return: | true on success otherwise false |
Redefined in descendants as: