v0

Default manager of Hubleto apps used in the Hubleto project.

\Hubleto\Framework\AppManager

Parent class\Hubleto\Framework\Core
Implements \Hubleto\Framework\Interfaces\AppManagerInterface

Properties

activatedApp

public \Hubleto\Framework\Interfaces\AppInterface $activatedApp

enabledApps

public \Hubleto\Framework\Interfaces\AppInterface[] $enabledApps

disabledApps

public \Hubleto\Framework\Interfaces\AppInterface[] $disabledApps

registeredAppNamespaces

public string[] $registeredAppNamespaces

Methods

init

[Description for init]

public init(): void

sanitizeAppNamespace

[Description for sanitizeAppNamespace]

public sanitizeAppNamespace(string $appNamespace): string

Parameters:

Parameter Type Description
$appNamespace string

validateAppNamespace

[Description for validateAppNamespace]

public validateAppNamespace(string $appNamespace): void

Parameters:

Parameter Type Description
$appNamespace string

onBeforeRender

[Description for onBeforeRender]

public onBeforeRender(): void

getAppNamespaceForConfig

[Description for getAppNamespaceForConfig]

public getAppNamespaceForConfig(string $appNamespace): string

Parameters:

Parameter Type Description
$appNamespace string

getAvailableApps

[Description for getAvailableApps]

public getAvailableApps(): array

getInstalledAppNamespaces

[Description for getInstalledAppNamespaces]

public getInstalledAppNamespaces(): array

createAppInstance

[Description for createAppInstance]

public createAppInstance(string $appNamespace): \Hubleto\Framework\Interfaces\AppInterface

Parameters:

Parameter Type Description
$appNamespace string

getEnabledApps

public getEnabledApps(): \Hubleto\Framework\Interfaces\AppInterface[]

getDisabledApps

public getDisabledApps(): \Hubleto\Framework\Interfaces\AppInterface[]

getInstalledApps

public getInstalledApps(): \Hubleto\Framework\Interfaces\AppInterface[]

getActivatedApp

[Description for getActivatedApp]

public getActivatedApp(): null|\Hubleto\Framework\Interfaces\AppInterface

getApp

[Description for getApp]

public getApp(string $appNamespace): null|\Hubleto\Framework\Interfaces\AppInterface

Parameters:

Parameter Type Description
$appNamespace string

isAppInstalled

[Description for isAppInstalled]

public isAppInstalled(string $appNamespace): bool

Parameters:

Parameter Type Description
$appNamespace string

isAppEnabled

[Description for isAppEnabled]

public isAppEnabled(string $appNamespace): bool

Parameters:

Parameter Type Description
$appNamespace string

installApp

public installApp(int $round, string $appNamespace, array<string,mixed> $appConfig = [], bool $forceInstall = false): bool

Parameters:

Parameter Type Description
$round int
$appNamespace string
$appConfig array<string,mixed>
$forceInstall bool

disableApp

public disableApp(string $appNamespace): void

Parameters:

Parameter Type Description
$appNamespace string

enableApp

public enableApp(string $appNamespace): void

Parameters:

Parameter Type Description
$appNamespace string

createApp

public createApp(string $appNamespace, string $appSrcFolder): void

Parameters:

Parameter Type Description
$appNamespace string
$appSrcFolder string

canAppDangerouslyInjectDesktopHtmlContent

public canAppDangerouslyInjectDesktopHtmlContent(string $appNamespace): bool

Parameters:

Parameter Type Description
$appNamespace string

Inherited methods

__construct

public __construct(): mixed

getServiceStatic

Shortcut for the dependency injection.

public static getServiceStatic(string $service): mixed
Parameter Type Description
$service string

getService

[Description for getService]

public getService(string $service): mixed

Parameters:

Parameter Type Description
$service string

env

Shortcut for the env service.

public env(): \Hubleto\Framework\Env

authProvider

Shortcut for the authentication service.

public authProvider(): \Hubleto\Framework\Interfaces\AuthInterface

db

Shortcut for the database service.

public db(): \Hubleto\Framework\Db

appManager

Shortcut for the app manager service.

public appManager(): \Hubleto\Framework\Interfaces\AppManagerInterface

router

Shortcut for the router service.

public router(): \Hubleto\Framework\Router

hookManager

Shortcut for the hook manager service.

public hookManager(): \Hubleto\Framework\HookManager

sessionManager

Shortcut for the session manager service.

public sessionManager(): \Hubleto\Framework\SessionManager

permissionsManager

Shortcut for the permissions manager service.

public permissionsManager(): \Hubleto\Framework\PermissionsManager

cronManager

Shortcut for the cron manager service.

public cronManager(): \Hubleto\Framework\CronManager

emailProvider

Shortcut for the email provider service.

public emailProvider(): \Hubleto\Framework\EmailProvider

config

Shortcut for the config service.

public config(): \Hubleto\Framework\Interfaces\ConfigManagerInterface

logger

Shortcut for the logger service.

public logger(): \Hubleto\Framework\Logger

locale

Shortcut for the locale service.

public locale(): \Hubleto\Framework\Locale

renderer

Shortcut for the renderer service.

public renderer(): \Hubleto\Framework\Renderer

translator

Shortcut for the translator service.

public translator(): \Hubleto\Framework\Interfaces\TranslatorInterface

getModel

[Description for getModel]

public getModel(string $model): \Hubleto\Framework\Models\Model

Parameters:

Parameter Type Description
$model string

getController

[Description for getController]

public getController(string $controller): \Hubleto\Framework\Controller

Parameters:

Parameter Type Description
$controller string

translate

Shorthand for core translate() function. Uses own language dictionary.

public translate(string $string, array $vars = []): string

Parameters:

Parameter Type Description
$string string String to be translated
$vars array

Return Value:

Translated string.

www.hubleto.com | Found a bug or missing something? Report an issue via GitHub.