PHP Class Minify_Env, minify

显示文件 Open project: mrclay/minify Class Usage Examples

Protected Properties

Property Type Description
$cookie
$get
$post
$server

Public Methods

Method Description
__construct ( $options = [] )
cookie ( $key = null, $default = null )
get ( $key = null, $default = null )
getDocRoot ( ) : string
getRequestUri ( ) : string
normalizePath ( string $path ) : string turn windows-style slashes into unix-style, remove trailing slash and lowercase drive letter
post ( $key = null, $default = null )
server ( $key = null )

Protected Methods

Method Description
computeDocRoot ( array $server ) : string Compute $_SERVER['DOCUMENT_ROOT'] for IIS using SCRIPT_FILENAME and SCRIPT_NAME.

Method Details

__construct() public method

public __construct ( $options = [] )

computeDocRoot() protected method

Compute $_SERVER['DOCUMENT_ROOT'] for IIS using SCRIPT_FILENAME and SCRIPT_NAME.
protected computeDocRoot ( array $server ) : string
$server array
return string

get() public method

public get ( $key = null, $default = null )

getDocRoot() public method

public getDocRoot ( ) : string
return string

getRequestUri() public method

public getRequestUri ( ) : string
return string

normalizePath() public method

turn windows-style slashes into unix-style, remove trailing slash and lowercase drive letter
public normalizePath ( string $path ) : string
$path string absolute path
return string

post() public method

public post ( $key = null, $default = null )

server() public method

public server ( $key = null )

Property Details

$get protected_oe property

protected $get

$post protected_oe property

protected $post

$server protected_oe property

protected $server