PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class TSqlMapXmlConfigBuilder

TSqlMapXmlConfig class file.

Direct known subclasses

TSqlMapXmlConfiguration, TSqlMapXmlMappingConfiguration
Abstract
Package: System\Data\SqlMap\Configuration
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizhuo[at]gmail[dot]com>
Located at Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php
Methods 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.

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.

Parameters

$node
SimpleXmlNode
property node

Returns

Object
new instance of class with class name given by 'class' attribute value.
protected
# setObjectPropFromNode( Object $obj, SimpleXmlNode $node, array $except = array() )

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.

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.

Parameters

$obj
Object
object instance
$node
SimpleXmlNode
property node
$except
array
exception property name
protected string
# getAbsoluteFilePath( string $basefile, string $resource )

Gets the filename relative to the basefile.

Gets the filename relative to the basefile.

Parameters

$basefile
string
base filename
$resource
string
relative filename

Returns

string
absolute filename.
protected SimpleXmlElement
# loadXmlDocument( string $filename, TSqlMapXmlConfiguration $config )

Load document using simple xml.

Load document using simple xml.

Parameters

$filename
string
filename.
$config

Returns

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

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

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

Parameters

$document
SimpleXmlDocument
$document
$tag
string
tag name.
$value
string
id value.

Returns

SimpleXmlElement
node if found, null otherwise.
abstract protected string
# getConfigFile( )

Returns

string
configuration file.
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO