PHP 클래스 Crunz\Configuration\Configuration

상속: extends Crunz\Singleton
파일 보기 프로젝트 열기: lavary/crunz 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$instance The instance of the configuration class
$parameters array Store parameters

공개 메소드들

메소드 설명
all ( ) : array Return all the parameters as an array
get ( string $key, $default = null ) : string Return a parameter based on a key
has ( string $key ) : boolean Check if a parameter exist
set ( string $key, mixed $value ) : array Set a parameter

보호된 메소드들

메소드 설명
__construct ( ) Process the configuration file into an array
locateConfigFile ( ) : string Locate the right config file and return its name
parse ( $filename ) : array Load configuration files and parse them
process ( $filename ) : array Handle the configuration settings

메소드 상세

__construct() 보호된 메소드

Process the configuration file into an array
protected __construct ( )

all() 공개 메소드

Return all the parameters as an array
public all ( ) : array
리턴 array

get() 공개 메소드

Return a parameter based on a key
public get ( string $key, $default = null ) : string
$key string
리턴 string

has() 공개 메소드

Check if a parameter exist
public has ( string $key ) : boolean
$key string
리턴 boolean

locateConfigFile() 보호된 메소드

Locate the right config file and return its name
protected locateConfigFile ( ) : string
리턴 string

parse() 보호된 메소드

Load configuration files and parse them
protected parse ( $filename ) : array
리턴 array

process() 보호된 메소드

Handle the configuration settings
protected process ( $filename ) : array
리턴 array

set() 공개 메소드

Set a parameter
public set ( string $key, mixed $value ) : array
$key string
$value mixed
리턴 array

프로퍼티 상세

$instance 보호되어 있는 정적으로 프로퍼티

The instance of the configuration class
protected static $instance

$parameters 보호되어 있는 프로퍼티

Store parameters
protected array $parameters
리턴 array