예제 #1
0
    /**
     * Returns a Supercage object, which wraps ALL input superglobals
     *
     * @param string  $config_file
     * @param boolean $strict whether or not to nullify the superglobal
     * @return Inspekt_Supercage
     */
    static public function makeSuperCage($config_file = null, $strict = true)
    {
        /**
         * @staticvar $_instance
         */
        static $_scinstance;

        if (!isset($_scinstance)) {
            $_scinstance = Inspekt_Supercage::Factory($config_file, $strict);
        }
        return $_scinstance;
    }
예제 #2
0
 /**
  * Returns a Supercage object, which wraps ALL input superglobals
  *
  * @param boolean $strict whether or not to nullify the superglobal
  * @return Inspekt_Supercage
  * @static
  */
 public static function makeSuperCage($strict = TRUE)
 {
     /**
      * @staticvar $_instance
      */
     static $_scinstance;
     if (!isset($_scinstance)) {
         $_scinstance = Inspekt_Supercage::Factory($strict);
     }
     return $_scinstance;
 }
예제 #3
0
 /**
  * Returns a Supercage object, which wraps ALL input superglobals
  *
  * @param string  $config_file
  * @param boolean $strict whether or not to nullify the superglobal
  * @return Inspekt_Supercage
  * @static
  */
 function makeSuperCage($config_file = NULL, $strict = TRUE)
 {
     /**
      * @staticvar $_instance
      */
     static $_scinstance;
     if (!isset($_scinstance)) {
         $_scinstance = Inspekt_Supercage::Factory($strict, $config_file);
     }
     return $_scinstance;
 }