Class TSqlMapXmlConfiguration

Description

TSqlMapXmlConfig class.

Configures the TSqlMapManager using xml configuration file.

  • since: 3.1
  • version: $Id: TSqlMapXmlConfiguration.php 2659 2009-05-23 07:52:15Z godzilla80@gmx.net $
  • 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 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)
Methods
Constructor __construct (line 153)
  • access: public
TSqlMapXmlConfiguration __construct (TSqlMapManager $manager)
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 Sun, 24 May 2009 16:48:33 -0400 by phpDocumentor 1.3.0RC4