\Hubleto\Framework\Interfaces\AppInterface
Methods
validateManifest
public validateManifest(): mixed
init
public init(): void
onBeforeRender
public onBeforeRender(): void
hook
public hook(string $hook): void
Parameters:
Parameter | Type | Description |
---|---|---|
$hook |
string |
getRootUrlSlug
public getRootUrlSlug(): string
getNotificationsCount
public getNotificationsCount(): int
translate
public translate(string $string, array $vars = [], string $context = 'root'): string
Parameters:
Parameter | Type | Description |
---|---|---|
$string |
string | |
$vars |
array | |
$context |
string |
installTables
public installTables(int $round): void
Parameters:
Parameter | Type | Description |
---|---|---|
$round |
int |
getAvailableControllerClasses
public getAvailableControllerClasses(): array
getAvailableModelClasses
public getAvailableModelClasses(): array
installDefaultPermissions
public installDefaultPermissions(): void
assignPermissionsToRoles
public assignPermissionsToRoles(): void
generateDemoData
public generateDemoData(): void
renderSecondSidebar
public renderSecondSidebar(): string
search
public search(array $expressions): array
Parameters:
Parameter | Type | Description |
---|---|---|
$expressions |
array |
addSetting
public addSetting(\Hubleto\Framework\Interfaces\AppInterface $app, array $setting): void
Parameters:
Parameter | Type | Description |
---|---|---|
$app |
\Hubleto\Framework\Interfaces\AppInterface | |
$setting |
array |
getSettings
public getSettings(): array
getFullConfigPath
public getFullConfigPath(string $path): string
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string |
saveConfig
public saveConfig(string $path, string $value = ''): void
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$value |
string |
saveConfigForUser
public saveConfigForUser(string $path, string $value = ''): void
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$value |
string |
configAsString
public configAsString(string $path, string $defaultValue = ''): string
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$defaultValue |
string |
configAsInteger
public configAsInteger(string $path, int $defaultValue): int
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$defaultValue |
int |
configAsFloat
public configAsFloat(string $path, float $defaultValue): float
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$defaultValue |
float |
configAsBool
public configAsBool(string $path, bool $defaultValue = false): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$defaultValue |
bool |
configAsArray
public configAsArray(string $path, array $defaultValue = []): array
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$defaultValue |
array |
setConfigAsString
public setConfigAsString(string $path, string $value = ''): void
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$value |
string |
setConfigAsInteger
public setConfigAsInteger(string $path, int $value): void
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$value |
int |
setConfigAsFloat
public setConfigAsFloat(string $path, float $value): void
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$value |
float |
setConfigAsBool
public setConfigAsBool(string $path, bool $value = false): void
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$value |
bool |
setConfigAsArray
public setConfigAsArray(string $path, array $value = []): void
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$value |
array |
dangerouslyInjectDesktopHtmlContent
public dangerouslyInjectDesktopHtmlContent(string $where): string
Parameters:
Parameter | Type | Description |
---|---|---|
$where |
string |
collectExtendibles
public collectExtendibles(string $extendibleName): array
Parameters:
Parameter | Type | Description |
---|---|---|
$extendibleName |
string |
addSearchSwitch
public addSearchSwitch(string $switch, string $name): void
Parameters:
Parameter | Type | Description |
---|---|---|
$switch |
string | |
$name |
string |
canHandleSearchSwith
public canHandleSearchSwith(string $switch): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$switch |
string |