Domain
class Domain
Properties
| static | $instance | ||
| string | $name | ||
| string | $description | ||
| string | $project_folder |
Methods
Domain constructor.
Init and setup the Document object
Get the current host.
Get the origin URL.
Get the available languages for the domain.
Get the default language for the domain.
Get the project active modules
Get if a project has a module
Get all registered connections
Get a specific registered connection config
Get a connection to the domain database
Details
at line 21
__construct(array $data)
Domain constructor.
at line 33
static void
init()
Init and setup the Document object
at line 66
static Domain
get()
Return the Document object instance. Document object is a singleton
at line 75
string|null
getHost()
Get the current host.
at line 84
string
getOrigin()
Get the origin URL.
at line 93
array
getLanguages()
Get the available languages for the domain.
at line 102
string
getDefaultLanguage()
Get the default language for the domain.
at line 111
Collection
getModules()
Get the project active modules
at line 124
bool
hasModule(string $module)
Get if a project has a module
at line 133
array
getConnectionsConfig()
Get all registered connections
at line 147
array
getConnectionConfig(string $connection_name)
Get a specific registered connection config
at line 156
Connection
getOwnConnection()
Get a connection to the domain database