[ Index ] |
|
Code source de Symfony 1.0.0 |
1 <?php 2 3 /** 4 * Control script which converts a properties file (in XML or INI-style .properties) into PHP array. 5 * 6 * This conversion exists for performance reasons only. 7 * 8 * @author Hans Lellelid <hans@xmpl.org> 9 * @version $Revision: 1.2 $ 10 */ 11 12 // we expect to have: 13 // $propertiesFile - path to xml/ini file. 14 15 16 $pfile = new PhingFile($propertiesFile); 17 if (!$pfile->exists()) { 18 throw new BuildException("Property file does not exist: $propertiesFile"); 19 } 20 21 $pfileName = explode('.', $pfile->getName()); 22 $format = array_pop($pfileName); 23 24 switch($format) { 25 case 'xml': 26 include 'xml.tpl'; 27 break; 28 default: 29 throw new BuildException("Propel now only supports the XML runtime conf format (expected to find a runtime file with .xml extension)."); 30 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |