BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
DerivativeRequest Class Reference
Inheritance diagram for DerivativeRequest:
Collaboration diagram for DerivativeRequest:

Public Member Functions

 __construct (WebRequest $base, $data, $wasPosted=false)
 
 getCookie ($key, $prefix=null, $default=null)
 
 getHeader ($name, $flags=0)
 
 getAllHeaders ()
 
 getSession ()
 
 getSessionData ($key)
 
 setSessionData ($key, $data)
 
 getAcceptLang ()
 
 getIP ()
 
 getProtocol ()
 
 getElapsedTime ()
 
- Public Member Functions inherited from FauxRequest
 __construct ($data=[], $wasPosted=false, $session=null, $protocol= 'http')
 
 getText ($name, $default= '')
 
 getValues ()
 
 getQueryValues ()
 
 getMethod ()
 
 wasPosted ()
 
 getCookie ($key, $prefix=null, $default=null)
 
 setCookie ($key, $value, $prefix=null)
 
 setCookies ($cookies, $prefix=null)
 
 setRequestURL ($url)
 
 getRequestURL ()
 
 getProtocol ()
 
 setHeader ($name, $val)
 
 setHeaders ($headers)
 
 getSessionArray ()
 
 getRawQueryString ()
 
 getRawPostString ()
 
 getRawInput ()
 
 checkUrlExtension ($extWhitelist=[])
 
- Public Member Functions inherited from WebRequest
 __construct ()
 
 getElapsedTime ()
 
 getProtocol ()
 
 interpolateTitle ()
 
 normalizeUnicode ($data)
 
 getRawVal ($name, $default=null)
 
 getVal ($name, $default=null)
 
 setVal ($key, $value)
 
 unsetVal ($key)
 
 getArray ($name, $default=null)
 
 getIntArray ($name, $default=null)
 
 getInt ($name, $default=0)
 
 getIntOrNull ($name)
 
 getFloat ($name, $default=0.0)
 
 getBool ($name, $default=false)
 
 getFuzzyBool ($name, $default=false)
 
 getCheck ($name)
 
 getText ($name, $default= '')
 
 getValues ()
 
 getValueNames ($exclude=[])
 
 getQueryValues ()
 
 getRawQueryString ()
 
 getRawPostString ()
 
 getRawInput ()
 
 getMethod ()
 
 wasPosted ()
 
 getSession ()
 
 setSessionId (SessionId $sessionId)
 
 getSessionId ()
 
 getCookie ($key, $prefix=null, $default=null)
 
 getRequestURL ()
 
 getFullRequestURL ()
 
 appendQueryValue ($key, $value)
 
 appendQueryArray ($array)
 
 getLimitOffset ($deflimit=50, $optionname= 'rclimit')
 
 getFileTempname ($key)
 
 getUploadError ($key)
 
 getFileName ($key)
 
 getUpload ($key)
 
 response ()
 
 getAllHeaders ()
 
 getHeader ($name, $flags=0)
 
 getSessionData ($key)
 
 setSessionData ($key, $data)
 
 checkUrlExtension ($extWhitelist=[])
 
 getAcceptLang ()
 
 getIP ()
 
 setIP ($ip)
 
 hasSafeMethod ()
 
 isSafeRequest ()
 
 markAsSafeRequest ()
 

Additional Inherited Members

- Static Public Member Functions inherited from WebRequest
static getPathInfo ($want= 'all')
 
static detectServer ()
 
static detectProtocol ()
 
static getRequestId ()
 
static overrideRequestId ($id)
 
static extractTitle ($path, $bases, $key=false)
 
static getGlobalRequestURL ()
 
- Public Attributes inherited from WebRequest
 $headers = []
 
const GETHEADER_LIST = 1
 
- Protected Member Functions inherited from FauxRequest
 initHeaders ()
 
 getRawIP ()
 
- Protected Member Functions inherited from WebRequest
 initHeaders ()
 
 doSecurityRedirect ($url)
 
 getRawIP ()
 
- Protected Attributes inherited from FauxRequest
 $cookies = []
 
- Protected Attributes inherited from WebRequest
 $data
 
 $requestTime
 
 $protocol
 
 $sessionId = null
 
 $markedAsSafe = false
 

Detailed Description

Similar to FauxRequest, but only fakes URL parameters and method (POST or GET) and use the base request for the remaining stuff (cookies, session and headers).

Since
1.19

Constructor & Destructor Documentation

DerivativeRequest::__construct ( WebRequest  $base,
  $data,
  $wasPosted = false 
)
Parameters
WebRequest$base
array$dataArray of non-urlencoded key => value pairs, the fake GET/POST values
bool$wasPostedWhether to treat the data as POST

The documentation for this class was generated from the following file: