LDAP Account Manager

ServerProfilePersistenceStrategyFiles
in package
implements ServerProfilePersistenceStrategy

Uses local file system to store server profiles.

Interfaces, Classes, Traits and Enums

ServerProfilePersistenceStrategy
Interface to store server profiles.

Table of Contents

deleteProfile()  : void
Deletes a server profile.
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.
getPath()  : string
Returns the path to the config file.

Methods

deleteProfile()

Deletes a server profile.

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

profile name

Tags
inheritDoc
Return values
void —

getProfiles()

Returns a lis of available server profiles.

public getProfiles() : array<string|int, string>
Tags
inheritDoc
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

Tags
inheritDoc
Return values
bool —

is writable

loadProfile()

Loads the given server profile

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

profile name

Tags
inheritDoc
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
inheritDoc
Return values
void —

saveProfile()

Saves a server profile.

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

profile

$name : string

profile name

Tags
inheritDoc
Return values
void —

getPath()

Returns the path to the config file.

private getPath(string $name) : string
Parameters
$name : string

profile name

Return values
string —

path on filesystem

Search results