PHP Class Altax\Foundation\Container

It's not a DI Container. This class contains core objects used globally.
Inheritance: implements ArrayAccess, implements Iterator, implements Countable
Show file Open project: kohkimakimoto/altax Class Usage Examples

Protected Properties

Property Type Description
$app Application
$configFiles Configuration file paths to load.
$input
$instances Container managed instances
$modules Modules
$output

Public Methods

Method Description
addModule ( $name, $module )
count ( )
current ( )
delete ( unknown $key ) Delete a value.
get ( unknown $key, $default = null, $delimiter = '/' ) Get a value
getApp ( )
getConfigFile ( $key )
getConfigFiles ( ) : [type] [getConfigFiles description]
getInput ( )
getInstances ( )
getModule ( $name )
getModules ( )
getName ( )
getOutput ( )
getVersion ( )
getVersionWithCommit ( )
isPhar ( )
key ( )
next ( )
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
rewind ( )
set ( unknown $key, unknown $value, $delimiter = '/' ) Set a value.
setApp ( $app )
setConfigFile ( $key, $path )
setConfigFiles ( array $files )
setInput ( $input )
setModules ( array $modules )
setOutput ( $output )
valid ( )

Protected Methods

Method Description
convertMultidimensional ( $oneDimArray, $leafValue ) Convert one dimensional array into multidimensional array

Method Details

addModule() public method

public addModule ( $name, $module )

convertMultidimensional() protected method

Convert one dimensional array into multidimensional array
protected convertMultidimensional ( $oneDimArray, $leafValue )

count() public method

public count ( )

current() public method

public current ( )

delete() public method

Delete a value.
public delete ( unknown $key )
$key unknown

get() public method

Get a value
public get ( unknown $key, $default = null, $delimiter = '/' )
$key unknown

getApp() public method

public getApp ( )

getConfigFile() public method

public getConfigFile ( $key )

getConfigFiles() public method

[getConfigFiles description]
public getConfigFiles ( ) : [type]
return [type]

getInput() public method

public getInput ( )

getInstances() public method

public getInstances ( )

getModule() public method

public getModule ( $name )

getModules() public method

public getModules ( )

getName() public method

public getName ( )

getOutput() public method

public getOutput ( )

getVersion() public method

public getVersion ( )

getVersionWithCommit() public method

isPhar() public method

public isPhar ( )

key() public method

public key ( )

next() public method

public next ( )

offsetExists() public method

public offsetExists ( $offset )

offsetGet() public method

public offsetGet ( $offset )

offsetSet() public method

public offsetSet ( $offset, $value )

offsetUnset() public method

public offsetUnset ( $offset )

rewind() public method

public rewind ( )

set() public method

Set a value.
public set ( unknown $key, unknown $value, $delimiter = '/' )
$key unknown
$value unknown

setApp() public method

public setApp ( $app )

setConfigFile() public method

public setConfigFile ( $key, $path )

setConfigFiles() public method

public setConfigFiles ( array $files )
$files array

setInput() public method

public setInput ( $input )

setModules() public method

public setModules ( array $modules )
$modules array

setOutput() public method

public setOutput ( $output )

valid() public method

public valid ( )

Property Details

$app protected property

Application
protected $app

$configFiles protected property

Configuration file paths to load.
protected $configFiles

$input protected property

protected $input

$instances protected property

Container managed instances
protected $instances

$modules protected property

Modules
protected $modules

$output protected property

protected $output