Example #1
0
 /**
  * =============================================================
  *  REMOVE ALL DATA
  * =============================================================
  *
  * -- CODE: ----------------------------------------------------
  *
  *    Config::reset();
  *
  * -------------------------------------------------------------
  *
  */
 public static function reset()
 {
     self::$bucket = array();
     return new static();
 }
Example #2
0
 /**
  * =============================================================
  *  REMOVE CONFIGURATION DATA BY ITS KEY
  * =============================================================
  *
  * -- CODE: ----------------------------------------------------
  *
  *    Config::reset();
  *
  * -------------------------------------------------------------
  *
  *    Config::reset('foo');
  *
  * -------------------------------------------------------------
  *
  */
 public static function reset($key = null)
 {
     if (!is_null($key)) {
         Mecha::UVR(self::$bucket, $key);
     } else {
         self::$bucket = array();
     }
     return new static();
 }