LDAP Account Manager

SelfServicePersistence
in package

Manages reading and writing self service profiles.

Table of Contents

$strategy  : SelfServicePersistenceStrategy
__construct()  : mixed
Constructor
canWrite()  : bool
Returns if the profile with given name can be written.
delete()  : void
Deletes a self service profile.
getProfiles()  : array<string|int, mixed>
Returns a list of available self service profiles.
load()  : selfServiceProfile
Loads the given self service profile.
rename()  : void
Renames a self service profile.
save()  : void
Stores the given profile.

Properties

Methods

__construct()

Constructor

public __construct() : mixed
Tags
throws
LAMException

error connecting database

Return values
mixed

canWrite()

Returns if the profile with given name can be written.

public canWrite(string $name, string $scope) : bool
Parameters
$name : string

profile name

$scope : string

user/group/host

Return values
bool

can be written

delete()

Deletes a self service profile.

public delete(string $name, string $scope) : void
Parameters
$name : string

profile name

$scope : string

user/group/host

Tags
throws
LAMException

error deleting profile

Return values
void

getProfiles()

Returns a list of available self service profiles.

public getProfiles() : array<string|int, mixed>
Return values
array<string|int, mixed>

profile names (array('account type' => array('profile1', 'profile2')))

rename()

Renames a self service profile.

public rename(string $oldName, string $newName, string $scope) : void
Parameters
$oldName : string

existing profile name

$newName : string

new profile name

$scope : string

user/group/host

Tags
throws
LAMException

error renaming profile

Return values
void

Search results