PHP Class Prado\Data\SqlMap\Configuration\TSqlMapXmlConfiguration

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

public __construct ( $manager )

attachCacheModels() protected méthode

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

configure() public méthode

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

getConfigFile() protected méthode

protected getConfigFile ( )

getManager() public méthode

public getManager ( )

loadDatabaseConnection() protected méthode

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

loadGlobalProperty() protected méthode

Load global replacement property.
protected loadGlobalProperty ( $node )

loadSqlMappingFiles() protected méthode

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

loadTypeHandler() protected méthode

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

replaceProperties() public méthode

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

resolveResultMapping() protected méthode

Resolve nest result mappings.
protected resolveResultMapping ( )