load.php
Tags
Table of Contents
- APP_PATH = trim($docRoot . $appPath, '/') . '/'
- BASE_PATH = trim($basePath, '/') . '/'
- DB_LOG = alse
- DEBUG = 0
- HOST = str_replace('www.', '', $host)
- HTTPS = $scheme == 'https://'
- ROOT_PATH = $docRoot . '/'
- TOKEN_AGE = 3600
- TOKEN_LIMIT = 10
- VENDOR_DIR = $vendorDir
- VERSION = '6.0.0'
- WEB_URL = (HTTPS ? 'https://' : $scheme) . $host . $contextPrefix . str_replace($docRoot, '', ROOT_PATH)
- createClass() : object|null
- Create a new instance of a class.
- doShutdown() : mixed
- Shutdown function to output debug messages to the browser console.
- debug() : mixed
- Output debug information to the browser console.
- getClassPath() : string
- Get the file path of a class based on its name.
Constants
APP_PATH
public
mixed
APP_PATH
=
trim($docRoot . $appPath, '/') . '/'
BASE_PATH
public
mixed
BASE_PATH
=
trim($basePath, '/') . '/'
DB_LOG
public
mixed
DB_LOG
= alse
DEBUG
public
mixed
DEBUG
= 0
HOST
public
mixed
HOST
= str_replace('www.', '', $host)
HTTPS
public
mixed
HTTPS
= $scheme == 'https://'
ROOT_PATH
public
mixed
ROOT_PATH
= $docRoot . '/'
TOKEN_AGE
public
mixed
TOKEN_AGE
= 3600
TOKEN_LIMIT
public
mixed
TOKEN_LIMIT
= 10
VENDOR_DIR
public
mixed
VENDOR_DIR
= $vendorDir
VERSION
public
mixed
VERSION
= '6.0.0'
WEB_URL
public
mixed
WEB_URL
= (HTTPS ? 'https://' : $scheme) . $host . $contextPrefix . str_replace($docRoot, '', ROOT_PATH)
Functions
createClass()
Create a new instance of a class.
createClass(string $className[, mixed $param = null ]) : object|null
Parameters
- $className : string
-
The class name
- $param : mixed = null
Return values
object|null —An instance of the class or null if the class doesn't exist
doShutdown()
Shutdown function to output debug messages to the browser console.
doShutdown() : mixed
Return values
mixed —debug()
Output debug information to the browser console.
debug(mixed $expression) : mixed
Parameters
- $expression : mixed
Return values
mixed —getClassPath()
Get the file path of a class based on its name.
getClassPath(string $className) : string
Parameters
- $className : string
-
The class name
Return values
string —The file path of the class or an empty string if the class is not found