PHP Class Minify_Env, minify

Afficher le fichier Open project: mrclay/minify Class Usage Examples

Protected Properties

Свойство Type Description
$cookie
$get
$post
$server

Méthodes publiques

Méthode 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 )

Méthodes protégées

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

Method Details

__construct() public méthode

public __construct ( $options = [] )

computeDocRoot() protected méthode

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

get() public méthode

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

getDocRoot() public méthode

public getDocRoot ( ) : string
Résultat string

getRequestUri() public méthode

public getRequestUri ( ) : string
Résultat string

normalizePath() public méthode

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

post() public méthode

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

server() public méthode

public server ( $key = null )

Property Details

$get protected_oe property

protected $get

$post protected_oe property

protected $post

$server protected_oe property

protected $server