LDAP Account Manager

ServerProfilePersistenceManager
in package

Manages the persistence of server profiles.

Table of Contents

$strategy  : ServerProfilePersistenceStrategy
__construct()  : mixed
createProfileFromTemplate()  : void
Creates a new server profile using a template/existing profile.
deleteProfile()  : void
Deletes a server profile.
getConfigTemplates()  : array<string|int, mixed>
Returns an array of string with all available configuration templates (without .sample.conf)
getProfiles()  : array<string|int, string>
Returns a lis of available server profiles.
isWritable()  : bool
Returns if the configuration is writable.
loadProfile()  : LAMConfig
Loads the given server profile
renameProfile()  : void
Renames an existing server profile.
saveProfile()  : void
Saves a server profile.

Properties

Methods

__construct()

public __construct() : mixed
Return values
mixed

createProfileFromTemplate()

Creates a new server profile using a template/existing profile.

public createProfileFromTemplate(string $name, string $templateName, string $password) : void
Parameters
$name : string

profile name

$templateName : string

template name

$password : string

new profile password

Tags
throws
LAMException

error saving profile

Return values
void

deleteProfile()

Deletes a server profile.

public deleteProfile(string $name) : void
Parameters
$name : string

profile name

Tags
throws
LAMException

error deleting profile

Return values
void

getConfigTemplates()

Returns an array of string with all available configuration templates (without .sample.conf)

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

template names

getProfiles()

Returns a lis of available server profiles.

public getProfiles() : array<string|int, string>
Tags
throws
LAMException

error listing profiles

Return values
array<string|int, string>

list of server profile names

isWritable()

Returns if the configuration is writable.

public isWritable(string $name) : bool
Parameters
$name : string

profile name

Return values
bool

is writable

loadProfile()

Loads the given server profile

public loadProfile(string $name) : LAMConfig
Parameters
$name : string

profile name

Tags
throws
LAMException

error loading profile

Return values
LAMConfig

profile

renameProfile()

Renames an existing server profile.

public renameProfile(string $oldName, string $newName) : void
Parameters
$oldName : string

old profile name

$newName : string

new profile name

Tags
throws
LAMException

error during rename

Return values
void

saveProfile()

Saves a server profile.

public saveProfile(LAMConfig $profile,  $name) : void
Parameters
$profile : LAMConfig

profile

$name :

profile name

Tags
throws
LAMException

error saving profile

Return values
void

Search results