PHP Class Ip\Config

显示文件 Open project: impresspages/impresspages

Protected Properties

Property Type Description
$config
$protocol
$protocolUrl

Public Methods

Method Description
__construct ( $config, array | null $server = null )
adminLocale ( )
baseUrl ( string $protocol = null ) : string Returns absolute base url.
database ( )
get ( string $name, mixed $default = null ) : mixed
isDebugMode ( )
isDevelopmentEnvironment ( )
protocol ( )
set ( $name, $value )
showErrors ( )
tablePrefix ( )
theme ( )

Method Details

__construct() public method

public __construct ( $config, array | null $server = null )
$config
$server array | null $_SERVER

adminLocale() public method

public adminLocale ( )

baseUrl() public method

Returns absolute base url.
public baseUrl ( string $protocol = null ) : string
$protocol string 'http:// https:// or //. Current protocol will be used if null
return string

database() public method

public database ( )

get() public method

public get ( string $name, mixed $default = null ) : mixed
$name string
$default mixed
return mixed

isDebugMode() public method

public isDebugMode ( )

isDevelopmentEnvironment() public method

protocol() public method

public protocol ( )

set() public method

public set ( $name, $value )

showErrors() public method

public showErrors ( )

tablePrefix() public method

public tablePrefix ( )

theme() public method

public theme ( )

Property Details

$config protected_oe property

protected $config

$protocol protected_oe property

protected $protocol

$protocolUrl protected_oe property

protected $protocolUrl