Class PHRUTS_DataSourceConfig

Description

A PHPBean representing the configuration information of a <data-source> element from a PHruts configuration file.

  • 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_DataSourceConfig.php,v 1.2 2008/05/28 15:52:27 ohenry Exp $
  • copyright: Copyright PHruts 2008

Located in /config/PHRUTS_DataSourceConfig.php (line 31)


	
			
Variable Summary
boolean $configured
string $key
array $properties
string $type
Method Summary
void addProperty (string $name, string $value)
void freeze ()
string getKey ()
array getProperties ()
string getType ()
void setKey (string $key)
void setType (string $type)
void __toString ()
Variables
boolean $configured = false (line 37)

Has this component been completely configured?

  • access: protected
string $key = PHRUTS_Globals::DATA_SOURCE_KEY (line 52)

The service context attribute key under which this data source is stored and made available.

  • access: protected
array $properties = array() (line 77)

The custom configuration properties for this data source implementation.

  • access: protected
string $type = 'phruts::util::PHRUTS_PDODataSourceFactory' (line 105)

The factory class to create data source object.

  • access: protected
Methods
addProperty (line 92)

Add a new custom configuration property.

  • access: public
void addProperty (string $name, string $value)
  • string $name: Custom property name
  • string $value: Custom property value
freeze (line 42)

Freeze the configuration of this data source.

  • access: public
void freeze ()
getKey (line 57)
  • access: public
string getKey ()
getProperties (line 82)
  • access: public
array getProperties ()
getType (line 110)
  • access: public
string getType ()
setKey (line 65)
  • throws: PHRUTS_IllegalStateException
  • access: public
void setKey (string $key)
  • string $key
setType (line 117)
  • access: public
void setType (string $type)
  • string $type
__toString (line 127)

Return a string representation of this object.

  • access: public
void __toString ()

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