Class PHRUTS_MessageResourcesFactory

Description

Factory for PHRUTS_MessagesResources instances.

The general usage pattern for this class is:

  • Call createFactory to retrieve a PHRUTS_MessageResourcesFactory instance.
  • Set properties as required to configure this factory instance to create PHRUTS_MessageResources instances with desired characteristics.
  • Call the createResources method of the factory to retrieve a newly instantiated PHRUTS_MessageResources instance.

  • 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_MessageResourcesFactory.php,v 1.3 2008/05/28 15:52:27 ohenry Exp $
  • copyright: Copyright PHruts 2008
  • todo: Set log informations.
  • abstract:

Located in /util/PHRUTS_MessageResourcesFactory.php (line 43)


	
			
Direct descendents
Class Description
PHRUTS_PropertyMessageResourcesFactory Factory for PHRUTS_PropertyMessageResources instances.
Variable Summary
static string $factoryClass
boolean $returnNull
Method Summary
static string getFactoryClass ()
static void setFactoryClass (string $factoryClass)
boolean getReturnNull ()
void setReturnNull (boolean $returnNull)
Variables
static string $factoryClass =
'phruts::util::PHRUTS_PropertyMessageResourcesFactory'
(line 50)

The fully qualified class name to be used for PHRUTS_MessageResourcesFactory instances.

  • access: protected
boolean $returnNull = true (line 96)

The "return null" property value to which newly created PHRUTS_MessageResources should be initialized.

  • access: protected
Methods
static method createFactory (line 76)

Create and return a PHRUTS_MessageResourcesFactory instance of the appropriate class, which can be used to create customized PHRUTS_MessageResources instances.

If no such factory can be created, return null instead.

  • access: public
static PHRUTS_MessageResourcesFactory createFactory ()
static method getFactoryClass (line 56)
  • access: public
static string getFactoryClass ()
static method setFactoryClass (line 63)
  • access: public
static void setFactoryClass (string $factoryClass)
  • string $factoryClass
createResources (line 120)

Create an return a newly instansiated PHRUTS_MessageResources.

This method must be implemented by concrete subclasses.

  • abstract:
  • access: public
PHRUTS_MessageResources createResources (string $config)
  • string $config: Configuration parameter(s) for the requested bundle

Redefined in descendants as:
getReturnNull (line 101)
  • access: public
boolean getReturnNull ()
setReturnNull (line 108)
  • access: public
void setReturnNull (boolean $returnNull)
  • boolean $returnNull

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