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

Replace the place holders ${name} in text with properties the corresponding global property value.
public replaceProperties ( $string ) : string
Результат string string with global property replacement.
Пример #1
0
 /**
  * Load document using simple xml.
  * @param string filename.
  * @return SimpleXmlElement xml document.
  */
 protected function loadXmlDocument($filename, TSqlMapXmlConfiguration $config)
 {
     if (strpos($filename, '${') !== false) {
         $filename = $config->replaceProperties($filename);
     }
     if (!is_file($filename)) {
         throw new TSqlMapConfigurationException('sqlmap_unable_to_find_config', $filename);
     }
     return simplexml_load_string($config->replaceProperties(file_get_contents($filename)));
 }