예제 #1
0
파일: config.php 프로젝트: dkoin/think
 public static function range($range)
 {
     self::$range = $range;
     if (!isset(self::$config[$range])) {
         self::$config[$range] = [];
     }
 }
예제 #2
0
파일: Config.php 프로젝트: HXFY/think
 /**
  * 重置配置参数
  */
 public static function reset($range = '')
 {
     $range = $range ?: self::$range;
     if (true === $range) {
         self::$config = [];
     } else {
         self::$config[$range] = [];
     }
 }
예제 #3
0
파일: config.php 프로젝트: 4u4v/think
 public static function range($range)
 {
     self::$range = $range;
 }
예제 #4
0
 /**
  * 重置配置参数
  */
 public static function reset($range = '')
 {
     $range = $range ?: self::$range;
     true === $range ? self::$config = [] : (self::$config[$range] = []);
 }
예제 #5
0
파일: config.php 프로젝트: guozqiu/think
 public static function reset($name, $value = null, $range = '')
 {
     self::$config = [];
 }