Class Xyster_Application_Service_Broker

Description

A broker for Application Services

  • copyright: Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
  • license: New BSD License

Located in /Application/Service/Broker.php (line 28)


	
			
Variable Summary
array $_paths
Xyster_Application_Service_Abstract[] $_services
Method Summary
static string _normalizeServiceName (string $name)
Xyster_Application_Service_Broker __construct (Xyster_Application $application)
Xyster_Application_Service_Broker addPath (string $path, [string $prefix = 'Xyster_Application_Service_'])
boolean hasService (string $name)
boolean removeService (string $name)
Variables
Xyster_Application $_application (line 33)
  • access: protected
array $_paths = array() (line 38)
  • access: protected
Xyster_Application_Service_Abstract[] $_services = array() (line 43)
  • access: protected
Methods
static method _normalizeServiceName (line 216)

Normalize service name

  • return: the normalized name
  • access: protected
static string _normalizeServiceName (string $name)
  • string $name
Constructor __construct (line 50)

Creates a new ServiceBroker

  • access: public
Xyster_Application_Service_Broker __construct (Xyster_Application $application)
addPath (line 74)

Add a path to Application Services

  • return: provides a fluent interface
  • access: public
Xyster_Application_Service_Broker addPath (string $path, [string $prefix = 'Xyster_Application_Service_'])
  • string $path
  • string $prefix: Optional; defaults to 'Xyster_Application_Service_'
addPrefix (line 92)

Add a class prefix for service layers

  • return: provides a fluent interface
  • access: public
Xyster_Application_Service_Broker addPrefix (string $prefix)
  • string $prefix
addService (line 105)

Add an application service layer

  • return: provides a fluent interface
  • access: public
getService (line 118)

Get a service by name

  • access: public
Xyster_Application_Service_Abstract getService (string $name)
  • string $name
hasService (line 135)

Check to see if a named service is in the broker

  • return: whether the service is loaded
  • access: public
boolean hasService (string $name)
  • string $name
removeService (line 147)

Remove a service from the broker

  • return: whether a service was removed
  • access: public
boolean removeService (string $name)
  • string $name
resetServices (line 163)

Clears out any service layer objects

  • return: provides a fluent interface
  • access: public
_loadService (line 175)

Loads a service

  • access: protected
Xyster_Application_Service_Abstract _loadService (string $name)
  • string $name
__get (line 62)

Property overloader

  • magic:
  • access: public
Xyster_Application_Service_Abstract __get (string $name)
  • string $name

Documentation generated on Mon, 19 May 2008 17:08:14 -0400 by phpDocumentor 1.4.2