Example #1
0
 /**
  * Reset's the active request with the previous one.  This is needed after
  * the active request is finished.
  *
  * Usage:
  *
  *    Request::reset_request();
  *
  * @return  void
  */
 public static function reset_request()
 {
     // Let's make the previous Request active since we are done executing this one.
     if (static::$active->parent()) {
         static::$active = static::$active->parent();
     }
 }
Example #2
0
 /**
  * Reset's the active request with the previous one.  This is needed after
  * the active request is finished.
  *
  * Usage:
  *
  *    Request::reset_request();
  *
  * @return  void
  */
 public static function reset_request($full = false)
 {
     // Let's make the previous Request active since we are done executing this one.
     static::$active and static::$active = static::$active->parent();
     if ($full) {
         static::$main = null;
     }
 }