Class \Prado\Data\SqlMap\TSqlMapManager
TSqlMapManager class holds the sqlmap configuation result maps, statements
parameter maps and a type handler factory.
Use \Prado\Data\SqlMap\SqlMapGateway property to obtain the gateway instance used for querying statements defined in the SqlMap configuration files.
$conn = new TDbConnection($dsn,$dbuser,$dbpass);
$manager = new TSqlMapManager($conn);
$manager->configureXml('mydb-sqlmap.xml');
$sqlmap = $manager->getSqlMapGateway();
$result = $sqlmap->queryForObject('Products');
Class hierarchy
Author: Wei Zhuo <weizhuo[at]gmail[dot]com>Since: 3.1
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
createSqlMapGateway() : TSqlMapGateway
Configures the current TSqlMapManager using the given xml configuration file
defined in {@see ConfigFile setConfigFile()}.
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |