TITAN Library for PHP5  5.1.0
Web Software Development Kit for PHP5
extensible Class Reference

Titan Extensible Base Class. More...

Inheritance diagram for extensible:
di

Public Member Functions

register ($service, $class)
 
container ($service, $class= '')
 
object ($service, array $arguments=array())
 

Detailed Description

Titan Extensible Base Class.

Class: \tl\core\extensible

Author
James E. Bush work@.nosp@m.bush.nosp@m..cc
Version
5.1.0

Member Function Documentation

& register (   $service,
  $class 
)

Register a service and return its container

Parameters
string$serviceThe name of the service
string$classThe class that handles the service
Returns
container
& container (   $service,
  $class = '' 
)

Get or set the container for a service

Parameters
string$serviceThe name of the service
string$class(optional) The class that handles the service; if set, forces creation of new object (defaul) '' = return cached object
Returns
container
& object (   $service,
array  $arguments = array() 
)

Create and return the container

Parameters
string$serviceThe name of the service
array$arguments(optional) Array of arguments to pass to the constructor (default) [] = use preset arguments or no arguments
Returns
container

The documentation for this class was generated from the following file: