PHP Class Prado\Data\SqlMap\Configuration\TSqlMapXmlConfiguration

Configures the TSqlMapManager using xml configuration file.
Since: 3.1
Inheritance: extends TSqlMapXmlConfigBuilder
Mostra file Open project: pradosoft/prado Class Usage Examples

Public Methods

Method Description
__construct ( $manager )
configure ( $filename = null ) Configure the TSqlMapManager using the given xml file.
getManager ( )
replaceProperties ( $string ) : string Replace the place holders ${name} in text with properties the corresponding global property value.

Protected Methods

Method Description
attachCacheModels ( ) Set the cache for each statement having a cache model property.
getConfigFile ( )
loadDatabaseConnection ( $node ) Load the database connection tag.
loadGlobalProperty ( $node ) Load global replacement property.
loadSqlMappingFiles ( unknown_type $node ) Load SqlMap mapping configuration.
loadTypeHandler ( $node ) Load the type handler configurations.
resolveResultMapping ( ) Resolve nest result mappings.

Method Details

__construct() public method

public __construct ( $manager )

attachCacheModels() protected method

Set the cache for each statement having a cache model property.
protected attachCacheModels ( )

configure() public method

Configure the TSqlMapManager using the given xml file.
public configure ( $filename = null )

getConfigFile() protected method

protected getConfigFile ( )

getManager() public method

public getManager ( )

loadDatabaseConnection() protected method

Load the database connection tag.
protected loadDatabaseConnection ( $node )

loadGlobalProperty() protected method

Load global replacement property.
protected loadGlobalProperty ( $node )

loadSqlMappingFiles() protected method

Load SqlMap mapping configuration.
protected loadSqlMappingFiles ( unknown_type $node )
$node unknown_type

loadTypeHandler() protected method

Load the type handler configurations.
protected loadTypeHandler ( $node )

replaceProperties() public method

Replace the place holders ${name} in text with properties the corresponding global property value.
public replaceProperties ( $string ) : string
return string string with global property replacement.

resolveResultMapping() protected method

Resolve nest result mappings.
protected resolveResultMapping ( )