/** * Initializes the module. * This method is required by IModule and is invoked by application. * It loads dao information from the module configuration. * @param TXmlElement module configuration */ public function init($xml) { parent::init($xml); foreach ($xml->getElementsByTagName("dao") as $node) { $this->_dao[$node->getAttribute('id')] = array('class' => $node->getAttribute('class')); } }
function setup() { $config = new TSqlMapConfig(); $config->ConfigFile = dirname(__FILE__) . '/maps/tests.xml'; $this->sqlmap = $config->getClient(); }