◆ __construct()
__construct |
( |
string |
$user_id, |
|
|
?string |
$workspace = null |
|
) |
| |
Object constructor. Retrieves user prefs and puts them in $workspaces array. Local (user) prefs have a highest priority than global prefs.
- Parameters
-
string | $user_id | The user identifier |
string | $workspace | The workspace to load |
References $user_id, dcCore\app(), and dcWorkspace\WS_TABLE_NAME.
◆ addWorkspace()
addWorkspace |
( |
string |
$workspace | ) |
|
Create a new workspace. If the workspace already exists, return it without modification.
- Parameters
-
string | $workspace | Workspace name |
- Returns
- dcWorkspace
References exists().
◆ renWorkspace()
renWorkspace |
( |
string |
$old_workspace, |
|
|
string |
$new_workspace |
|
) |
| |
Rename a workspace.
- Parameters
-
string | $old_workspace | The old workspace name |
string | $new_workspace | The new workspace name |
- Exceptions
-
- Returns
- bool
References exists(), and dcWorkspace\WS_NAME_SCHEMA.
◆ delWorkspace()
delWorkspace |
( |
string |
$workspace | ) |
|
Delete a whole workspace with all preferences pertaining to it.
- Parameters
-
string | $workspace | Workspace name |
- Returns
- bool
References exists().
◆ get()
Returns full workspace with all prefs pertaining to it.
- Parameters
-
string | $workspace | Workspace name |
- Returns
- mixed
References exists().
◆ __get()
__get |
( |
string |
$workspace | ) |
|
Magic __get method.
Returns full workspace with all prefs pertaining to it.
- Parameters
-
string | $workspace | Workspace name |
- Returns
- mixed
- Parameters
-
string | $workspace | Workspace name |
- Returns
- mixed
◆ exists()
exists |
( |
string |
$workspace | ) |
|
◆ dumpWorkspaces()
◆ $con
◆ $table
◆ $user_id
◆ $workspaces
The documentation for this class was generated from the following file: