Packages:
default
System
System.Caching
System.Collections
System.Data
System.Data.ActiveRecord
System.Data.ActiveRecord.Relations
System.Data.ActiveRecord.Scaffold
System.Data.ActiveReecord.Scaffold.InputBuilder
System.Data.Commom.Sqlite
System.Data.Common
System.Data.Common.Mssql
System.Data.Common.Mysql
System.Data.Common.Oracle
System.Data.Common.Pgsql
System.Data.Common.Sqlite
System.Data.DataGateway
System.Data.SqlMap
System.Data.SqlMap.Configuration
System.Data.SqlMap.Statements
System.Exceptions
System.I18N
System.IO
System.Security
System.Util
System.Web
System.Web.Services
System.Web.UI
System.Web.UI.ActiveControls
System.Web.UI.WebControls
System.Web.UI.WebControls.assets
System.Xml


Classes:
Keyword

Class TSqlMapXmlConfigBuilder


TSqlMapXmlConfig class file.

Author: Wei Zhuo <weizhuo[at]gmail[dot]com>

Method Summary
protected  Object
createObjectFromNode ( SimpleXmlNode $node)
Create an instance of an object give by the attribute named 'class' in the node and set the properties on the object given by attribute names and values.
protected  string
getAbsoluteFilePath ( string $basefile, string $resource)
Gets the filename relative to the basefile.
protected  abstract  string
protected  SimpleXmlElement
getElementByIdValue ( SimpleXmlDocument $document, string $tag, string $value)
Get element node by ID value (try for attribute name ID as case insensitive).
protected  SimpleXmlElement
loadXmlDocument ( string $filename, TSqlMapXmlConfiguration $config)
Load document using simple xml.
protected  void
setObjectPropFromNode ( Object $obj, SimpleXmlNode $node, array $except)
For each attributes (excluding attribute named in $except) set the property of the $obj given by the name of the attribute with the value of the attribute.

Method Details

createObjectFromNode

protected Object createObjectFromNode (SimpleXmlNode $node )

Create an instance of an object give by the attribute named 'class' in the node and set the properties on the object given by attribute names and values.

Input
SimpleXmlNode$nodeproperty node
Output
Object new instance of class with class name given by 'class' attribute value.
Exception

getAbsoluteFilePath

protected string getAbsoluteFilePath (string $basefile , string $resource )

Gets the filename relative to the basefile.

Input
string$basefilebase filename
string$resourcerelative filename
Output
string absolute filename.
Exception

getConfigFile

protected abstract string getConfigFile ()

Output
string configuration file.
Exception

getElementByIdValue

protected SimpleXmlElement getElementByIdValue (SimpleXmlDocument $document , string $tag , string $value )

Get element node by ID value (try for attribute name ID as case insensitive).

Input
SimpleXmlDocument$document
string$tagtag name.
string$valueid value.
Output
SimpleXmlElement node if found, null otherwise.
Exception

loadXmlDocument

protected SimpleXmlElement loadXmlDocument (string $filename , TSqlMapXmlConfiguration $config )

Load document using simple xml.

Input
string$filenamefilename.
TSqlMapXmlConfiguration$config
Output
SimpleXmlElement xml document.
Exception

setObjectPropFromNode

protected void setObjectPropFromNode (Object $obj , SimpleXmlNode $node , array $except )

For each attributes (excluding attribute named in $except) set the property of the $obj given by the name of the attribute with the value of the attribute.

Input
Object$objobject instance
SimpleXmlNode$nodeproperty node
array$exceptexception property name
Output
Exception