Functions

Checks if all input values are correct and returns the LDAP commands which should be executed.

checkSelfServiceOptions(string $scope, string $fields, array $attributes, boolean $passwordChangeOnly, array $readOnlyFields) : array

Parameters

$scope

string

account type

$fields

string

input fields (array( => array(, , ...)))

$attributes

array

LDAP attributes

$passwordChangeOnly

boolean

indicates that the user is only allowed to change his password and no LDAP content is readable

$readOnlyFields

array

list of read-only fields

Returns

arraymessages and LDAP commands (array('messages' => array(), 'add' => array(), 'del' => array(), 'mod' => array()))

Checks if the self service settings are valid

checkSelfServiceSettings(string $scope, array $options, \selfServiceProfile $profile) : array

Parameters

$scope

string

account type

$options

array

hash array containing all options (name => array(...))

$profile

\selfServiceProfile

profile

Returns

arraylist of error messages

Returns the field settings for the self service.

getSelfServiceFieldSettings(string $scope) : array

Parameters

$scope

string

account type

Returns

arraysettings

Returns meta HTML code for each self service field.

getSelfServiceOptions(string $scope, array $fields, array $attributes, boolean $passwordChangeOnly, array $readOnlyFields) : array

Parameters

$scope

string

account type

$fields

array

input fields (array( => array(, , ...)))

$attributes

array

LDAP attributes (attribute names in lower case)

$passwordChangeOnly

boolean

indicates that the user is only allowed to change his password and no LDAP content is readable

$readOnlyFields

array

list of read-only fields

Returns

arraymeta HTML code (array( => htmlTableRow))

Returns a list of all available self service profiles (without .conf)

getSelfServiceProfiles() : array

Returns

arrayprofile names (array( => array(, , ...)))

Returns a list of possible search attributes for the self service.

getSelfServiceSearchAttributes(string $scope) : array

Parameters

$scope

string

account type

Returns

arrayattributes

Returns a hash array (module name => elements) of all module options for the configuration page.

getSelfServiceSettings(string $scope, \selfServiceProfile $profile) : array

Parameters

$scope

string

account type

$profile

\selfServiceProfile

currently edited profile

Returns

arrayconfiguration options

Returns if this is a LAM Pro installation.

isLAMProVersion() : boolean

Returns

booleanLAM Pro installation

Checks if a service profile is writable.

isSelfServiceProfileWritable(string $name, string $scope) : boolean

Parameters

$name

string

profile name

$scope

string

account type

Returns

booleantrue if file is writable

Loads all settings of a self service profile.

loadSelfServiceProfile(string $name, string $scope) : \selfServiceProfile

Parameters

$name

string

profile name

$scope

string

account type

Returns

\selfServiceProfiletrue if file was readable

Saves a self service profile.

saveSelfServiceProfile(string $name, string $scope, \selfServiceProfile $profile) : boolean

File is created, if needed

Parameters

$name

string

name of the account profile

$scope

string

account type

$profile

\selfServiceProfile

self service profile

Returns

booleantrue, if saving succeeded

Classes and interfaces

selfServiceProfile

Includes all settings of a self service profile.

« More »