Configuration management for the Hubleto project.
\Hubleto\Framework\Services\ConfigManager
| Parent class | \Hubleto\Framework\Core |
| Implements | \Hubleto\Framework\Interfaces\ConfigManagerInterface |
Properties
Methods
ƒ forModel
[Description for forModel]
public forModel(string $modelClass): \Hubleto\Framework\Services\ConfigManager
Parameters
| Parameter | Type | Description |
|---|---|---|
$modelClass |
string |
ƒ forApp
[Description for forApp]
public forApp(string $appClass): \Hubleto\Framework\Services\ConfigManager
Parameters
| Parameter | Type | Description |
|---|---|---|
$appClass |
string |
ƒ setPrefix
[Description for setPrefix]
public setPrefix(string $prefix): void
Parameters
| Parameter | Type | Description |
|---|---|---|
$prefix |
string |
ƒ getPrefix
[Description for getPrefix]
public getPrefix(): string
ƒ setConfig
[Description for setConfig]
public setConfig(array $configData): mixed
Parameters
| Parameter | Type | Description |
|---|---|---|
$configData |
array |
ƒ empty
[Description for empty]
public empty(string $path): bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$path |
string |
ƒ get
[Description for get]
public get(string $path = '', null $default = null, bool $useFullConfig = false): mixed
Parameters
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$default |
null | |
$useFullConfig |
bool |
ƒ getAsString
[Description for getAsString]
public getAsString(string $path, string $defaultValue = ''): string
Parameters
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$defaultValue |
string |
ƒ getAsInteger
[Description for getAsInteger]
public getAsInteger(string $path, int $defaultValue): int
Parameters
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$defaultValue |
int |
ƒ getAsFloat
[Description for getAsFloat]
public getAsFloat(string $path, float $defaultValue): float
Parameters
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$defaultValue |
float |
ƒ getAsBool
[Description for getAsBool]
public getAsBool(string $path, bool $defaultValue = false): bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$defaultValue |
bool |
ƒ getAsArray
[Description for getAsArray]
public getAsArray(string $path, array $defaultValue = []): array
Parameters
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$defaultValue |
array |
ƒ getAsJson
[Description for getAsJson]
public getAsJson(string $path, array $defaultValue = []): array
Parameters
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$defaultValue |
array |
ƒ set
[Description for set]
public set(string $path, mixed $value): void
Parameters
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$value |
mixed |
ƒ save
[Description for save]
public save(string $path, string $value): void
Parameters
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$value |
string |
ƒ saveForUser
[Description for saveForUser]
public saveForUser(string $path, string $value): void
Parameters
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$value |
string |
ƒ delete
[Description for delete]
public delete(mixed $path): void
Parameters
| Parameter | Type | Description |
|---|---|---|
$path |
mixed |
ƒ init
[Description for init]
public init(): void
ƒ filterByUser
[Description for filterByUser]
public filterByUser(): void
Inherited methods
ƒ __construct
public __construct(): mixed
ƒ setDebugLevel
[Description for setDebugLevel]
public setDebugLevel(int $level): void
Parameters
| Parameter | Type | Description |
|---|---|---|
$level |
int |
ƒ getDebugLevel
[Description for getDebugLevel]
public getDebugLevel(): int
ƒ getServiceStatic
Shortcut for the dependency injection.
public static getServiceStatic(string $service): mixed
- This method is static.
Parameters
| Parameter | Type | Description |
|---|---|---|
$service |
string |
ƒ getService
[Description for getService]
public getService(string $service): mixed
Parameters
| Parameter | Type | Description |
|---|---|---|
$service |
string |
ƒ loader
Shortcut for the loader service.
public loader(): \Hubleto\Framework\Loader
ƒ env
Shortcut for the env service.
public env(): \Hubleto\Framework\Interfaces\EnvInterface
ƒ authProvider
Shortcut for the authentication service.
public authProvider(): \Hubleto\Framework\Interfaces\AuthProviderInterface
ƒ db
Shortcut for the database service.
public db(): \Hubleto\Framework\Interfaces\DbInterface
ƒ appManager
Shortcut for the app manager service.
public appManager(): \Hubleto\Framework\Interfaces\AppManagerInterface
ƒ router
Shortcut for the router service.
public router(): \Hubleto\Framework\Interfaces\Router
ƒ eventManager
Shortcut for the event manager service.
public eventManager(): \Hubleto\Framework\Interfaces\EventManagerInterface
ƒ sessionManager
Shortcut for the session manager service.
public sessionManager(): \Hubleto\Framework\Interfaces\SessionManagerInterface
ƒ permissionsManager
Shortcut for the permissions manager service.
public permissionsManager(): \Hubleto\Framework\Interfaces\PermissionsManagerInterface
ƒ cronManager
Shortcut for the cron manager service.
public cronManager(): \Hubleto\Framework\Interfaces\CronManagerInterface
ƒ config
Shortcut for the config service.
public config(): \Hubleto\Framework\Interfaces\ConfigManagerInterface
ƒ terminal
Shortcut for the terminal service.
public terminal(): \Hubleto\Framework\Interfaces\TerminalInterface
ƒ logger
Shortcut for the logger service.
public logger(): \Hubleto\Framework\Interfaces\LoggerInterface
ƒ locale
Shortcut for the locale service.
public locale(): \Hubleto\Framework\Interfaces\LocaleInterface
ƒ renderer
Shortcut for the renderer service.
public renderer(): \Hubleto\Framework\Interfaces\RendererInterface
ƒ translator
Shortcut for the translator service.
public translator(): \Hubleto\Framework\Interfaces\TranslatorInterface
ƒ getModel
[Description for getModel]
public getModel(string $model): \Hubleto\Framework\Interfaces\ModelInterface
Parameters
| Parameter | Type | Description |
|---|---|---|
$model |
string |
ƒ getController
[Description for getController]
public getController(string $controller): \Hubleto\Framework\Controller
Parameters
| Parameter | Type | Description |
|---|---|---|
$controller |
string |
ƒ translate
public translate(string $string, array<string,string> $vars = [], string $contextInner = ''): string
Parameters
| Parameter | Type | Description |
|---|---|---|
$string |
string | |
$vars |
array<string,string> | |
$contextInner |
string |
