Documentation

Config
in package

Class Config

Table of Contents

$activeModules  : array<string|int, mixed>
$allowLegacyMode  : bool
$autoloadPath  : string
$cache_dir  : string
$custom_handlers  : array<string|int, mixed>
$db  : DB
$dbColumns  : DBColumns
$dbTables  : DBTables
$defaultTheme  : string
$displayMySQLErrors  : bool
$displayPHPErrors  : bool
$email  : Email
$forceHTTPS  : bool
$legacyTheme  : string
$max_pages  : int
$navbarItems  : array<string|int, mixed>
$page_always_maintenance_mode  : bool
$page_limit  : int
$passwordSalt1  : string
$passwordSalt2  : string
$security  : Security
$siteEmailAddress  : string
$siteEmailName  : string
$siteLogo  : string
$siteTitle  : string
$templateMaintenanceMode  : bool
$theme  : Theme
$themes  : array<string|int, mixed>
$timezone  : string
$useCookies  : bool
$useShortURLs  : bool
$ini  : array<string|int, mixed>|false
__construct()  : mixed
Config constructor.
activateModules()  : mixed
activateTheme()  : mixed
configureApplication()  : mixed
configureIncludes()  : mixed
defineDB()  : mixed
defineDBColumns()  : mixed
defineDBTables()  : mixed
defineEmail()  : mixed
defineSecurity()  : mixed
defineTheme()  : mixed

Properties

$activeModules

public static array<string|int, mixed> $activeModules = array()

$allowLegacyMode

public static bool $allowLegacyMode = false

$autoloadPath

public static string $autoloadPath = ''

$cache_dir

public static string $cache_dir = DOCUMENT_ROOT . 'local/cache'

$custom_handlers

public static array<string|int, mixed> $custom_handlers = array('api' => array('2fa_info' => null, 'after_2fa_validation' => null, 'after_login' => null), 'site' => array('2fa_info' => null))
Tags
deprecated

$defaultTheme

public static string $defaultTheme = ''

$displayMySQLErrors

public static bool $displayMySQLErrors = false

$displayPHPErrors

public static bool $displayPHPErrors = false

$forceHTTPS

public static bool $forceHTTPS = true

$legacyTheme

public static string $legacyTheme = ''

$max_pages

public static int $max_pages = 3

$navbarItems

public static array<string|int, mixed> $navbarItems = array('/dashboard' => 'Dashboard')

$page_always_maintenance_mode

public static bool $page_always_maintenance_mode = false

$page_limit

public static int $page_limit = 15

$passwordSalt1

public static string $passwordSalt1 = ''

$passwordSalt2

public static string $passwordSalt2 = ''

$siteEmailAddress

public static string $siteEmailAddress = ''

$siteEmailName

public static string $siteEmailName = ''
public static string $siteLogo = ''

$siteTitle

public static string $siteTitle = 'nxPHP'

$templateMaintenanceMode

public static bool $templateMaintenanceMode = false

$themes

public static array<string|int, mixed> $themes = array()

$timezone

public static string $timezone = 'Europe/Berlin'

$useCookies

public static bool $useCookies = false

$useShortURLs

public static bool $useShortURLs = false

$ini

private array<string|int, mixed>|false $ini

Methods

__construct()

Config constructor.

public __construct() : mixed
Return values
mixed

activateModules()

public static activateModules(string ...$modules) : mixed
Parameters
$modules : string

Activate modules by handing them over as comma separated parameters. Example: activateModules('module1', 'module2', 'module3);

Return values
mixed

activateTheme()

public static activateTheme(mixed $fqID, mixed $directory, mixed $themeName) : mixed
Parameters
$fqID : mixed
$directory : mixed
$themeName : mixed
Return values
mixed

configureApplication()

private configureApplication() : mixed
Return values
mixed

configureIncludes()

private configureIncludes() : mixed
Return values
mixed

defineDB()

private defineDB() : mixed
Return values
mixed

defineDBColumns()

private defineDBColumns() : mixed
Return values
mixed

defineDBTables()

private defineDBTables() : mixed
Return values
mixed

defineEmail()

private defineEmail() : mixed
Return values
mixed

defineSecurity()

private defineSecurity() : mixed
Return values
mixed

defineTheme()

private defineTheme() : mixed
Return values
mixed

Search results