PHP Class Yiinitializr\Helpers\Config

Since: 1.0
Author: Antonio Ramirez ([email protected])
Show file Open project: 2amigos/yiinitializr Class Usage Examples

Public Methods

Method Description
createEnvironmentLockFile ( string $content = '' )
getConfigurationDirectoryPath ( ) : string Returns the configuration directory path
getEnvironmentLockFilePath ( ) : string Returns the environment lock file path
settings ( ) : array | mixed Reads the configuration settings from the file
value ( $value ) : mixed | null Returns a value of the array

Method Details

createEnvironmentLockFile() public static method

public static createEnvironmentLockFile ( string $content = '' )
$content string

getConfigurationDirectoryPath() public static method

Returns the configuration directory path
public static getConfigurationDirectoryPath ( ) : string
return string

getEnvironmentLockFilePath() public static method

Returns the environment lock file path
public static getEnvironmentLockFilePath ( ) : string
return string

settings() public static method

Reads the configuration settings from the file
public static settings ( ) : array | mixed
return array | mixed

value() public static method

Returns a value of the array
public static value ( $value ) : mixed | null
$value
return mixed | null | null if no key is found