Class MOXMAN_Storage_StorageManager
Inheritance | MOXMAN_Storage_StorageManager |
---|
This class handles storage engines and hands out instances for global, user and group storage.
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Constructs a new storage manager instance. | MOXMAN_Storage_StorageManager |
getGlobalStorage() | Returns a storage instance for the global scope. Global data is shared between all users. | MOXMAN_Storage_StorageManager |
getGroupStorage() | Returns a storage instance for the group scope. Items stored in this instance will only be available for the specific group and if the user has access to that group. | MOXMAN_Storage_StorageManager |
getStorageClass() | Returns the storage class name. | MOXMAN_Storage_StorageManager |
getUserStorage() | Returns a storage instance for the user scope. Items stored in this instance will only be available for the specific user. | MOXMAN_Storage_StorageManager |
setStorageClass() | Sets the storage class name to be created and used. | MOXMAN_Storage_StorageManager |
Method Details
Constructs a new storage manager instance.
public void __construct ( $config, $user ) | ||
$config | MOXMAN_Util_Config | Config instance to use for the storage. |
$user | MOXMAN_Auth_User | User to get name or groups from. |
Returns a storage instance for the global scope. Global data is shared between all users.
public MOXMAN_Storage_IStorage getGlobalStorage ( ) | ||
return | MOXMAN_Storage_IStorage | Storage instance for global data. |
---|
Returns a storage instance for the group scope. Items stored in this instance will only be available for the specific group and if the user has access to that group.
public MOXMAN_Storage_IStorage getGroupStorage ( $name ) | ||
$name | string | Name of the group to get the storage for. |
return | MOXMAN_Storage_IStorage | Storage instance for global data. |
---|
Returns the storage class name.
public String getStorageClass ( ) | ||
return | String | Storage class name. |
---|
Returns a storage instance for the user scope. Items stored in this instance will only be available for the specific user.
public MOXMAN_Storage_IStorage getUserStorage ( ) | ||
return | MOXMAN_Storage_IStorage | Storage instance for global data. |
---|
Sets the storage class name to be created and used.
public void setStorageClass ( $className ) | ||
$className | string | Storage class name to use. |