LDAP Account Manager

ServerProfilePersistenceStrategyPdo
in package
implements ServerProfilePersistenceStrategy

Stores server profiles in a database.

Interfaces, Classes, Traits and Enums

ServerProfilePersistenceStrategy
Interface to store server profiles.

Table of Contents

TABLE_NAME  = 'server_profiles'
$pdo  : PDO
__construct()  : mixed
Constructor
createInitialSchema()  : void
Creates the initial schema.
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.
checkSchema()  : void
Checks if the schema has latest version.

Constants

TABLE_NAME

public mixed TABLE_NAME = 'server_profiles'

Properties

Methods

__construct()

Constructor

public __construct(PDO $pdo) : mixed
Parameters
$pdo : PDO

PDO

Return values
mixed

createInitialSchema()

Creates the initial schema.

public createInitialSchema() : void
Return values
void

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

checkSchema()

Checks if the schema has latest version.

private checkSchema() : void
Return values
void

Search results