HumHub Documentation (unofficial)

ApplicationTrait

Table of Contents

Properties

$loadedAppConfig  : array<string|int, mixed>
$minRecommendedPhpVersion  : string
$minSupportedPhpVersion  : string
$_homeUrl  : string|array<string|int, mixed>

Methods

__construct()  : mixed
getHomeUrl()  : string
getMailer()  : MailerInterface
isDatabaseInstalled()  : bool
Checks if settings table exists or application is not installed yet
isInstalled()  : bool
Checks if Humhub is installed
setDatabaseInstalled()  : mixed
Sets the application database in installed state
setHomeUrl()  : mixed
setInstalled()  : mixed
Sets application in installed state (disables installer)
removeLegacyConfigSettings()  : mixed

Properties

$loadedAppConfig

public array<string|int, mixed> $loadedAppConfig
Tags
readonly

$minRecommendedPhpVersion

public string $minRecommendedPhpVersion

Minimum PHP version that recommended to work without issues

$minSupportedPhpVersion

public string $minSupportedPhpVersion

Minimum PHP version that may works but probably with small issues

$_homeUrl

protected string|array<string|int, mixed> $_homeUrl = null

the homepage url

Methods

__construct()

public __construct([mixed $config = [] ]) : mixed
Parameters
$config : mixed = []
Tags
inheritdoc

getHomeUrl()

public getHomeUrl() : string
Return values
string

the homepage URL

isDatabaseInstalled()

Checks if settings table exists or application is not installed yet

public isDatabaseInstalled([bool $checkConnection = false ]) : bool
Parameters
$checkConnection : bool = false
Tags
since
1.16
Return values
bool

isInstalled()

Checks if Humhub is installed

public isInstalled() : bool
Tags
since
1.16
Return values
bool

setDatabaseInstalled()

Sets the application database in installed state

public setDatabaseInstalled() : mixed
Tags
since
1.16

setHomeUrl()

public setHomeUrl(string|array<string|int, mixed> $value) : mixed
Parameters
$value : string|array<string|int, mixed>

the homepage URL

setInstalled()

Sets application in installed state (disables installer)

public setInstalled() : mixed
Tags
since
1.16

removeLegacyConfigSettings()

private removeLegacyConfigSettings(mixed $applicationConfig) : mixed
Parameters
$applicationConfig : mixed

        
On this page

Search results