示例#1
0
 /**
  * Get mail configuration
  *
  * @return Zend_Config_Ini
  */
 public static function get()
 {
     if (null == self::$conf) {
         if (($cachedConfig = self::getCached('Internal.configuration.type.' . self::CONFIGURATION_TYPE)) !== FALSE) {
             self::$conf = $cachedConfig;
         } else {
             $configPath = dirname(APPLICATION_CONFIG_FILE);
             $config = new Zend_Config_Ini($configPath . "/" . self::CONFIGURATION_TYPE . ".ini", APPLICATION_ENV);
             self::$conf = $config;
             self::setCached('Internal.configuration.type.' . self::CONFIGURATION_TYPE, self::$conf);
         }
     }
     return self::$conf;
 }
示例#2
0
文件: Utils.php 项目: kangza/hagtag
 /**
  * Get Mail Server Configuration Information
  *
  * @return Zend_Config_Ini
  */
 public static function getMailConfiguration()
 {
     Zend_Loader::loadClass("Ht_Mail_Configuration");
     return Ht_Mail_Configuration::get();
 }