Exemplo n.º 1
0
 /**
  * getIniConf 
  *
  * cache and return the parsed morm_conf.ini file
  * 
  * @return array parsed ini file
  */
 public static function loadIniConf()
 {
     if (!isset(self::$_morm_conf)) {
         $file = MORM_CONF_PATH . self::INI_CONF_FILE;
         self::$_morm_conf = file_exists($file) ? parse_ini_file($file, TRUE) : array();
     }
     return self::$_morm_conf;
 }
Exemplo n.º 2
0
 /**
  * getIniConf 
  *
  * cache and return the parsed morm_conf.ini file
  * 
  * @return array parsed ini file
  */
 public static function getIniConf()
 {
     if (!isset(self::$_morm_conf)) {
         self::$_morm_conf = parse_ini_file(MORM_CONF_PATH . self::INI_CONF_FILE);
     }
     return self::$_morm_conf;
 }