Prado\Data\SqlMap\TSqlMapManager::configureXml PHP Метод

configureXml() публичный Метод

Loads and parses the SqlMap configuration file.
public configureXml ( $file )
    public function configureXml($file)
    {
        $config = new TSqlMapXmlConfiguration($this);
        $config->configure($file);
    }

Usage Example

Пример #1
0
 /**
  * Create and configure the data mapper using sqlmap configuration file.
  * Or if cache is enabled and manager already cached load from cache.
  * If cache is enabled, the data mapper instance is cached.
  *
  * @return TSqlMapManager SqlMap manager instance
  * @since 3.1.7
  */
 public function getSqlMapManager()
 {
     if (($manager = $this->loadCachedSqlMapManager()) === null) {
         $manager = new TSqlMapManager($this->getDbConnection());
         if (strlen($file = $this->getConfigFile()) > 0) {
             $manager->configureXml($file);
             $this->cacheSqlMapManager($manager);
         }
     } elseif ($this->getConnectionID() !== '') {
         $manager->setDbConnection($this->getDbConnection());
     }
     return $manager;
 }
All Usage Examples Of Prado\Data\SqlMap\TSqlMapManager::configureXml