## Class TSqlMapXmlConfiguration

Description

TSqlMapXmlConfig class.

Configures the TSqlMapManager using xml configuration file.

- since: 3.1
- version: $Id: TSqlMapXmlConfiguration.php 2757 2010-01-15 14:47:40Z Christophe.Boulain $
- author: Wei Zhuo <weizho[at]gmail[dot]com>

Located in /Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php (line 135)

    TSqlMapXmlConfigBuilder
       |
       --TSqlMapXmlConfiguration

Method Summary
TSqlMapXmlConfiguration __construct (TSqlMapManager $manager)
void attachCacheModels ()
void configure ([string $filename = null])
void getConfigFile ()
void getManager ()
void loadDatabaseConnection (SimpleXmlElement $node)
void loadGlobalProperty (SimpleXmlElement $node)
void loadSqlMappingFiles (unknown_type $node)
void loadTypeHandler (SimpleXmlElement $node)
string replaceProperties (string $string)
void resolveResultMapping ()
Methods
Constructor __construct (line 153)

- access: public

TSqlMapXmlConfiguration __construct (TSqlMapManager $manager)

- TSqlMapManager $manager: manager instance.

attachCacheModels (line 272)

Set the cache for each statement having a cache model property.

- access: protected

void attachCacheModels ()
configure (line 172)

Configure the TSqlMapManager using the given xml file.

- access: public

void configure ([string $filename = null])

- string $filename: SqlMap configuration xml file.

getConfigFile (line 163)

- access: protected

void getConfigFile ()

Redefinition of:

TSqlMapXmlConfigBuilder::getConfigFile()

getManager (line 158)

- access: public

void getManager ()
loadDatabaseConnection (line 220)

Load the database connection tag.

- access: protected

void loadDatabaseConnection (SimpleXmlElement $node)

- SimpleXmlElement $node: connection node.

loadGlobalProperty (line 201)

Load global replacement property.

- access: protected

void loadGlobalProperty (SimpleXmlElement $node)

- SimpleXmlElement $node: property node.

loadSqlMappingFiles (line 230)

Load SqlMap mapping configuration.

- access: protected

void loadSqlMappingFiles (unknown_type $node)

- unknown_type $node

loadTypeHandler (line 210)

Load the type handler configurations.

- access: protected

void loadTypeHandler (SimpleXmlElement $node)

- SimpleXmlElement $node: type handler node

replaceProperties (line 290)

Replace the place holders ${name} in text with properties the corresponding global property value.

- return: string with global property replacement.
- access: public

string replaceProperties (string $string)

- string $string: original string.

resolveResultMapping (line 246)

Resolve nest result mappings.

- access: protected

void resolveResultMapping ()

#### Inherited Methods

Inherited From TSqlMapXmlConfigBuilder

> TSqlMapXmlConfigBuilder::createObjectFromNode()
> TSqlMapXmlConfigBuilder::getAbsoluteFilePath()
> TSqlMapXmlConfigBuilder::getConfigFile()
> TSqlMapXmlConfigBuilder::getElementByIdValue()
> TSqlMapXmlConfigBuilder::loadXmlDocument()
> TSqlMapXmlConfigBuilder::setObjectPropFromNode()

Documentation generated on Mon, 22 Feb 2010 12:18:44 +0000 by phpDocumentor 1.3.0RC4