◆ __construct()
Object constructor. Retrieves blog settings and puts them in $namespaces array. Local (blog) settings have a highest priority than global settings.
- Parameters
-
mixed | $blog_id | The blog identifier |
References $blog_id, dcCore\app(), and dcNamespace\NS_TABLE_NAME.
◆ addNamespace()
addNamespace |
( |
string |
$namespace | ) |
|
◆ renNamespace()
renNamespace |
( |
string |
$old_namespace, |
|
|
string |
$new_namespace |
|
) |
| |
Rename a namespace.
- Parameters
-
string | $old_namespace | The old ns |
string | $new_namespace | The new ns |
- Exceptions
-
- Returns
- bool return true if no error, else false
References exists(), and dcNamespace\NS_NAME_SCHEMA.
◆ delNamespace()
delNamespace |
( |
string |
$namespace | ) |
|
Delete a whole namespace with all settings pertaining to it.
- Parameters
-
string | $namespace | Namespace name |
- Returns
- bool
References exists().
◆ get()
Returns full namespace with all settings pertaining to it.
- Parameters
-
string | $namespace | Namespace name |
- Returns
- dcNamespace
◆ __get()
__get |
( |
string |
$namespace | ) |
|
Magic __get method.
- Parameters
-
string | $namespace | namespace name |
- Returns
- dcNamespace
◆ exists()
exists |
( |
string |
$namespace | ) |
|
◆ dumpNamespaces()
◆ $con
◆ $table
◆ $blog_id
◆ $namespaces
The documentation for this class was generated from the following file: