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
$strategy
private
SelfServicePersistenceStrategy
$strategy
Methods
__construct()
Constructor
public
__construct() : mixed
Tags
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
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')))
load()
Loads the given self service profile.
public
load(string $name, string $scope) : selfServiceProfile
Parameters
- $name : string
-
profile name
- $scope : string
-
user/group/host
Tags
Return values
selfServiceProfile —profile
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
Return values
void —save()
Stores the given profile.
public
save(string $name, string $scope, selfServiceProfile $profile) : void
Parameters
- $name : string
-
profile name
- $scope : string
-
user/group/host
- $profile : selfServiceProfile
-
profile