ServerProfilePersistenceStrategy
in
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.
Methods
deleteProfile()
Deletes a server profile.
public
deleteProfile(string $name) : void
Parameters
- $name : string
-
profile name
Tags
Return values
void —getProfiles()
Returns a lis of available server profiles.
public
getProfiles() : array<string|int, string>
Tags
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
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
Return values
void —saveProfile()
Saves a server profile.
public
saveProfile(LAMConfig $profile, string $name) : void
Parameters
- $profile : LAMConfig
-
profile
- $name : string
-
profile name