PHP Class Liip\RMT\Context

Show file Open project: liip/rmt Class Usage Examples

Protected Properties

Property Type Description
$lists
$params
$services

Public Methods

Method Description
addToList ( $id, $class, $options = null )
createEmptyList ( $id )
get ( string $serviceName ) : mixed Shortcut to retried a service
getInstance ( ) : Context
getList ( $id )
getParam ( string $name ) : mixed Shortcut to retried a parameter
getParameter ( $id )
getService ( $id )
setParameter ( $id, $value )
setService ( $id, $classOrObject, $options = null )

Protected Methods

Method Description
__construct ( )
instanciateObject ( $objectDefinition )
validateClass ( $className )

Method Details

__construct() protected method

protected __construct ( )

addToList() public method

public addToList ( $id, $class, $options = null )

createEmptyList() public method

public createEmptyList ( $id )

get() public static method

Shortcut to retried a service
public static get ( string $serviceName ) : mixed
$serviceName string
return mixed

getInstance() public static method

public static getInstance ( ) : Context
return Context

getList() public method

public getList ( $id )

getParam() public static method

Shortcut to retried a parameter
public static getParam ( string $name ) : mixed
$name string
return mixed

getParameter() public method

public getParameter ( $id )

getService() public method

public getService ( $id )

instanciateObject() protected method

protected instanciateObject ( $objectDefinition )

setParameter() public method

public setParameter ( $id, $value )

setService() public method

public setService ( $id, $classOrObject, $options = null )

validateClass() protected method

protected validateClass ( $className )

Property Details

$lists protected property

protected $lists

$params protected property

protected $params

$services protected property

protected $services