Ejemplo n.º 1
0
 /**
  * Enter description here...
  * 
  * @param string  $config_file
  * @param boolean $strict
  * @return Inspekt_Supercage
  */
 function Factory($config_file = NULL, $strict = TRUE)
 {
     $sc = new Inspekt_Supercage();
     $sc->_makeCages($config_file, $strict);
     // eliminate the $_REQUEST superglobal
     if ($strict) {
         $_REQUEST = null;
     }
     return $sc;
 }
Ejemplo n.º 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;
 }
 /**
  * Enter description here...
  *
  * @param boolean $strict
  * @return Inspekt_Supercage
  */
 public static function Factory($strict = TRUE)
 {
     $sc = new Inspekt_Supercage();
     $sc->_makeCages($strict);
     // eliminate the $_REQUEST superglobal
     if ($strict) {
         $_REQUEST = null;
     }
     return $sc;
 }
Ejemplo n.º 4
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;
    }
Ejemplo n.º 5
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;
 }