config.inc
Interfaces, Classes, Traits and Enums
- ServerProfilePersistenceStrategy
- Interface to store server profiles.
- LAMLanguage
- Represents a supported language.
- ServerProfilePersistenceManager
- Manages the persistence of server profiles.
- ServerProfilePersistenceStrategyFiles
- Uses local file system to store server profiles.
- ServerProfilePersistenceStrategyPdo
- Stores server profiles in a database.
- LAMConfig
- This class manages conf files.
- LAMCfgMain
- This class manages config.cfg.
Table of Contents
- setSSLCaCert() : mixed
- Sets the environment variables for custom SSL CA certificates.
- setlanguage() : mixed
- Sets language settings for automatic translation
- checkChmod() : mixed
- Checks whether a specific flag in the rights string is set.
- LAMVersion() : string
- Returns the version number of this LAM installation.
- extractConfigOptionsFromPOST() : array<string|int, mixed>
- Extracts config options from HTTP POST data.
- metaRefresh() : mixed
- Prints a meta refresh page
- isAccountTypeHidden() : bool
- Checks if the given account type is hidden.
- getLanguages() : array<string|int, LAMLanguage>
- Returns a list of all supported languages.
Functions
setSSLCaCert()
Sets the environment variables for custom SSL CA certificates.
setSSLCaCert() : mixed
Return values
mixed —setlanguage()
Sets language settings for automatic translation
setlanguage() : mixed
Return values
mixed —checkChmod()
Checks whether a specific flag in the rights string is set.
checkChmod(string $right, string $target, string $chmod) : mixed
Parameters
- $right : string
-
read, write or execute
- $target : string
-
owner, group or other
- $chmod : string
-
the chmod rights
Return values
mixed —LAMVersion()
Returns the version number of this LAM installation.
LAMVersion() : string
Format:
Major/minor version are always numbers, patch level may contain letters for unofficial releases only (e.g. 0.5.alpha1).
Return values
string —version number
extractConfigOptionsFromPOST()
Extracts config options from HTTP POST data.
extractConfigOptionsFromPOST(array<string|int, mixed> $confTypes) : array<string|int, mixed>
Parameters
- $confTypes : array<string|int, mixed>
-
array (option name => type (e.g. multiselect))
Return values
array<string|int, mixed> —list of config options (name =>[values])
metaRefresh()
Prints a meta refresh page
metaRefresh(string $page) : mixed
Parameters
- $page : string
-
the URL of the target page
Return values
mixed —isAccountTypeHidden()
Checks if the given account type is hidden.
isAccountTypeHidden(string $type) : bool
Parameters
- $type : string
-
account type (e.g. user)
Return values
bool —is hidden
getLanguages()
Returns a list of all supported languages.
getLanguages() : array<string|int, LAMLanguage>
Return values
array<string|int, LAMLanguage> —languages