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
$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
getHomeUrl()
public
getHomeUrl() : string
Return values
string —the homepage URL
getMailer()
public
getMailer() : MailerInterface
Return values
MailerInterfaceisDatabaseInstalled()
Checks if settings table exists or application is not installed yet
public
isDatabaseInstalled([bool $checkConnection = false ]) : bool
Parameters
- $checkConnection : bool = false
Tags
Return values
boolisInstalled()
Checks if Humhub is installed
public
isInstalled() : bool
Tags
Return values
boolsetDatabaseInstalled()
Sets the application database in installed state
public
setDatabaseInstalled() : mixed
Tags
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
removeLegacyConfigSettings()
private
removeLegacyConfigSettings(mixed $applicationConfig) : mixed
Parameters
- $applicationConfig : mixed