Class PHRUTS_ModuleConfig

Description

The collection of static configuration information that describes a PHruts-based module.

Multiple modules are identified by a <em>prefix</em> in the request URI. If no module prefix can be matched, the default configuration (with a prefix equal to a zero-length string) is selected.

  • author: John WILDENAUER <jwilde@users.sourceforge.net> (PHP4 port of Struts)
  • author: Olivier HENRY <oliv.henry@gmail.com> (PHP5 port of Struts)
  • version: $Id: PHRUTS_ModuleConfig.php,v 1.6 2008/05/28 15:52:27 ohenry Exp $
  • copyright: Copyright PHruts 2008

Located in /config/PHRUTS_ModuleConfig.php (line 43)


	
			
Variable Summary
Method Summary
Variables
string $actionConfigClass = 'phruts::config::PHRUTS_ActionConfig' (line 126)

The default class name to be used when creating action config instances.

  • access: protected
array $actionConfigs = array() (line 57)

The set of action configurations for this module, if any, keyed by the path property.

  • access: protected
boolean $configured = false (line 107)

Has this application been completely configured yet.

Once this flag has been set, any attempt to modify the configuration will return an PHRUTS_IllegalStateException.

  • access: protected
PHRUTS_ControllerConfig $controllerConfig = null (line 49)

The controller configuration object for this module

  • access: protected
array $dataSources = array() (line 89)

The set of data source configurations for this module, if any, keyed by the key property.

  • access: protected
array $formBeans = array() (line 65)

The set of form bean configurations for this module, if any, keyed by the name property.

  • access: protected
array $forwards = array() (line 73)

The set of global forward configurations for this module, if any, keyed by the name property.

  • access: protected
array $messageResources = array() (line 81)

The set of message resources configurations for this module, if any, keyed by the key property.

  • access: protected
array $plugIns = array() (line 97)

The set of configured plug-in Actions for this module, if any, in the order they were declared and configured.

  • access: protected
string $prefix = null (line 119)

The prefix of the context-relative portion of the request URI, used to select this configuration versus others supported by the controller service.

A configuration with a prefix of a zero-length string is the default configuration for this web module.

  • access: protected
Methods
Constructor __construct (line 132)
  • access: public
PHRUTS_ModuleConfig __construct (string $prefix)
  • string $prefix: The prefix of the context-relative portion of the request URI.
addActionConfig (line 238)

Add a new PHRUTS_ActionConfig instance to the set associated with this module.

  • throws: PHRUTS_IllegalStateException - If this module configuration has been frozen
  • access: public
void addActionConfig (PHRUTS_ActionConfig $config)
addDataSourceConfig (line 304)

Add a new PHRUTS_DataSourceConfig instance to the set associated with this module.

  • throws: PHRUTS_IllegalStateException - If this module configuration has been frozen
  • access: public
void addDataSourceConfig (PHRUTS_DataSourceConfig $config)
addFormBeanConfig (line 255)

Add a new PHRUTS_FormBeanConfig instance to the set associated with this module.

  • throws: PHRUTS_IllegalStateException - If this module configuration has been frozen
  • access: public
void addFormBeanConfig (PHRUTS_FormBeanConfig $config)
addForwardConfig (line 271)

Add a new PHRUTS_ForwardConfig instance to the set of global forwards associated with this module.

  • throws: PHRUTS_IllegalStateException - If this module configuration has been frozen
  • access: public
void addForwardConfig (PHRUTS_ForwardConfig $config)
addMessageResourcesConfig (line 287)

Add a new PHRUTS_MessageResourcesConfig instance to the set associated with this module.

  • throws: PHRUTS_IllegalStateException - If this module configuration has been frozen
  • access: public
void addMessageResourcesConfig (PHRUTS_MessageResourcesConfig $config)
addPlugInConfig (line 320)

Add a newly configured PHRUTS_PlugInConfig instance to the set of plug-in Actions for this module.

  • throws: PHRUTS_IllegalStateException - If this module configuration has been frozen
  • access: public
void addPlugInConfig (PHRUTS_PlugInConfig $plugInConfig)
findActionConfig (line 334)

Return the action configuration for the specified path, if any; otherwise return null.

  • access: public
PHRUTS_ActionConfig findActionConfig (string $path)
  • string $path: The path of the action configuration to return
findActionConfigs (line 351)

Return the action configurations for this module.

If there are none, a zero-length array is returned.

  • access: public
array findActionConfigs ()
findDataSourceConfig (line 446)

Return the data source configuration for the specified key, if any; otherwise return null.

  • access: public
PHRUTS_DataSourceConfig findDataSourceConfig (string $key)
  • string $key: Key of the data source configuration to return
findDataSourceConfigs (line 463)

Return the data source configurations for this module.

If there are none, a zero-length array is returned.

  • access: public
array findDataSourceConfigs ()
findFormBeanConfig (line 362)

Return the form bean configuration for the specified key, if any; otherwise return null.

  • access: public
PHRUTS_FormBeanConfig findFormBeanConfig (string $name)
  • string $name: Name of the form bean configuration to return
findFormBeanConfigs (line 379)

Return the form bean configurations for this module.

If there are none, a zero-length array is returned.

  • access: public
array findFormBeanConfigs ()
findForwardConfig (line 390)

Return the forward configuration for the specified key, if any; otherwise return null.

  • access: public
PHRUTS_ForwardConfig findForwardConfig (string $name)
  • string $name: Name of the forward configuration to return
findForwardConfigs (line 407)

Return the forward configurations for this module.

If there are none, a zero-length array is returned.

  • access: public
array findForwardConfigs ()
findMessageResourcesConfig (line 418)

Return the message resources configuration for the specified key, if any; otherwise return null.

  • access: public
PHRUTS_MessageResourcesConfig findMessageResourcesConfig (string $key)
  • string $key: Key of the data source configuration to return
findMessageResourcesConfigs (line 435)

Return the message resources configurations for this module.

If there are none, a zero-length array is returned.

  • access: public
array findMessageResourcesConfigs ()
findPlugInConfigs (line 474)

Return the configured plug-in actions for this module.

If there are none, a zero-length array is returned.

  • access: public
array findPlugInConfigs ()
freeze (line 484)

Freeze the configuration of this module.

After this method returns, any attempt to modify the configuration will return an IllegalStateException.

  • access: public
void freeze ()
getActionConfigClass (line 213)

The default class name to be used when creating action config instances.

  • access: public
string getActionConfigClass ()
getConfigured (line 144)

Has this module been completely configured yet.

Once this flag has been set, any attempt to modify the configuration will return an IllegalStateException.

  • access: public
boolean getConfigured ()
getControllerConfig (line 153)

The controller configuration object for this module.

  • access: public
PHRUTS_ControllerConfig getControllerConfig ()
getPrefix (line 185)

The prefix of the context-relative portion of the request URI, used to select this configuration versus others supported by the controller service.

A configuration with a prefix of a zero-length string is the default configuration for this web module.

  • access: public
string getPrefix ()
removeActionConfig (line 528)

Remove the specified action configuration instance.

  • throws: PHRUTS_IllegalStateException - If this module configuration has been frozen
  • access: public
void removeActionConfig (PHRUTS_ActionConfig $config)
removeDataSourceConfig (line 589)

Remove the specified data source configuration instance.

  • throws: PHRUTS_IllegalStateException - If this module configuration has been frozen
  • access: public
void removeDataSourceConfig (PHRUTS_DataSourceConfig $config)
removeFormBeanConfig (line 543)

Remove the specified form bean configuration instance.

  • throws: PHRUTS_IllegalStateException - If this module configuration has been frozen
  • access: public
void removeFormBeanConfig (PHRUTS_FormBeanConfig $config)
removeForwardConfig (line 558)

Remove the specified forward configuration instance.

  • throws: PHRUTS_IllegalStateException - If this module configuration has been frozen
  • access: public
void removeForwardConfig (PHRUTS_ForwardConfig $config)
removeMessageResourcesConfig (line 573)

Remove the specified message resources configuration instance.

  • throws: PHRUTS_IllegalStateException - If this module configuration has been frozen
  • access: public
void removeMessageResourcesConfig (PHRUTS_MessageResourcesConfig $config)
setActionConfigClass (line 225)

The default class name to be used when creating action config instances.

  • throws: PHRUTS_IllegalStateException - If this module configuration has been frozen
  • access: public
void setActionConfigClass (string $actionConfigClass)
  • string $actionConfigClass: Default class name to be used when creating action config instances.
setControllerConfig (line 168)

The controller configuration object for this module.

  • throws: PHRUTS_IllegalStateException - If this module configuration has been frozen
  • access: public
void setControllerConfig (PHRUTS_ControllerConfig $cc)
setPrefix (line 201)

The prefix of the context-relative portion of the request URI, used to select this configuration versus others supported by the controller service.

A configuration with a prefix of a zero-length string is the default configuration for this web module.

  • throws: PHRUTS_IllegalStateException - If this module configuration has been frozen
  • access: public
void setPrefix (string $prefix)
  • string $prefix

Documentation generated on Sat, 31 May 2008 15:46:23 +0200 by phpDocumentor 1.4.1