Example #1
0
 public static function range($range)
 {
     self::$range = $range;
     if (!isset(self::$config[$range])) {
         self::$config[$range] = [];
     }
 }
Example #2
0
 /**
  * 重置配置参数
  */
 public static function reset($range = '')
 {
     $range = $range ?: self::$range;
     if (true === $range) {
         self::$config = [];
     } else {
         self::$config[$range] = [];
     }
 }
Example #3
0
 public static function range($range)
 {
     self::$range = $range;
 }
Example #4
0
 /**
  * 重置配置参数
  */
 public static function reset($range = '')
 {
     $range = $range ?: self::$range;
     true === $range ? self::$config = [] : (self::$config[$range] = []);
 }
Example #5
0
 public static function reset($name, $value = null, $range = '')
 {
     self::$config = [];
 }