PHP 클래스 Phergie_Config, phergie

저자: Phergie Development Team ([email protected])
상속: implements ArrayAccess
파일 보기 프로젝트 열기: phergie/phergie 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$files array Mapping of configuration file paths to an array of names of settings they contain
$settings array Mapping of setting names to their current corresponding values

공개 메소드들

메소드 설명
offsetExists ( string $offset ) : boolean Checks to see if a configuration setting is assigned a value.
offsetGet ( string $offset ) : mixed Returns the value of a configuration setting.
offsetSet ( string $offset, mixed $value ) : void Sets the value of a configuration setting.
offsetUnset ( string $offset ) : void Removes the value set for a configuration setting.
read ( string $file ) : Phergie_Config Includes a specified PHP configuration file and incorporates its return value (which should be an associative array) into the current configuration settings.
readArray ( array $settings ) : Phergie_Config Merges an associative array of configuration setting values into the current configuration settings.
write ( ) : Phergie_Config Writes the values of the current configuration settings back to their originating files.

메소드 상세

offsetExists() 공개 메소드

Checks to see if a configuration setting is assigned a value.
또한 보기: ArrayAccess::offsetExists()
public offsetExists ( string $offset ) : boolean
$offset string Configuration setting name
리턴 boolean TRUE if the setting has a value, FALSE otherwise

offsetGet() 공개 메소드

Returns the value of a configuration setting.
또한 보기: ArrayAccess::offsetGet()
public offsetGet ( string $offset ) : mixed
$offset string Configuration setting name
리턴 mixed Configuration setting value or NULL if it is not assigned a value

offsetSet() 공개 메소드

Sets the value of a configuration setting.
또한 보기: ArrayAccess::offsetSet()
public offsetSet ( string $offset, mixed $value ) : void
$offset string Configuration setting name
$value mixed New setting value
리턴 void

offsetUnset() 공개 메소드

Removes the value set for a configuration setting.
또한 보기: ArrayAccess::offsetUnset()
public offsetUnset ( string $offset ) : void
$offset string Configuration setting name
리턴 void

read() 공개 메소드

Includes a specified PHP configuration file and incorporates its return value (which should be an associative array) into the current configuration settings.
public read ( string $file ) : Phergie_Config
$file string Path to the file to read
리턴 Phergie_Config Provides a fluent interface

readArray() 공개 메소드

Merges an associative array of configuration setting values into the current configuration settings.
public readArray ( array $settings ) : Phergie_Config
$settings array Associative array of configuration setting values keyed by setting name
리턴 Phergie_Config Provides a fluent interface

write() 공개 메소드

Writes the values of the current configuration settings back to their originating files.
public write ( ) : Phergie_Config
리턴 Phergie_Config Provides a fluent interface

프로퍼티 상세

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

Mapping of configuration file paths to an array of names of settings they contain
protected array $files
리턴 array

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

Mapping of setting names to their current corresponding values
protected array $settings
리턴 array