\qfq Sip

Class Sip

Summary

Methods
Properties
Constants
__construct()
queryStringToSip()
sipUniqId()
getVarsFromSip()
getSipFromQueryString()
getQueryStringFromSip()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
splitParamClientSip()
splitAndFix()
$phpUnit
$staticUniqId
N/A

Properties

$phpUnit

$phpUnit : 

Type

$staticUniqId

$staticUniqId : 

Type

Methods

__construct()

__construct(  $sessionname,   $phpUnit = false) 

Parameters

$sessionname
$phpUnit

queryStringToSip()

queryStringToSip(string  $queryString, string  $mode = RETURN_URL,   $scriptName = 'index.php') : string

Parameters

string $queryString

Possible variants:

string $mode

Possible values: RETURN_URL|RETURN_SIP

$scriptName

Throws

\qfq\CodeException
\qfq\UserFormException

Returns

string —
  • mode=RETURN_URL: return complete URL
    • mode=RETURN_SIP: returns only the sip

sipUniqId()

sipUniqId(boolean|false  $staticUniqId = false) : boolean|string

Returns a new uniqid, which will be used as a SIP identifier

Parameters

boolean|false $staticUniqId

Returns

boolean|string

getVarsFromSip()

getVarsFromSip(  $s) : array

Retrieve Params stored in $_SESSION[$s]

Parameters

$s

Throws

\qfq\UserFormException
\qfq\UserFormException

Returns

array —

Parameter Array

getSipFromQueryString()

getSipFromQueryString(  $queryString) : mixed

Returns the sip for the given querystring. The querystring has to be sorted.

Parameters

$queryString

Returns

mixed

getQueryStringFromSip()

getQueryStringFromSip(  $sip) : boolean

Returns the querystring for the given $sip

Parameters

$sip

Returns

boolean

splitParamClientSip()

splitParamClientSip(array  $paramArray, array  $clientArray, array  $sipArray) : string

Splits the $paramArray in &$clientArray and &$sipArray. $sipArray contains all key/values pairs wich are not belong to Typo3.

Parameters

array $paramArray
array $clientArray
array $sipArray

Throws

\qfq\CodeException

Returns

string

splitAndFix()

splitAndFix(  $key,   $value) : string

Fix first parameter mix of hostname / script / Get parameter and optional missing keyname

Parameters

$key
$value

Returns

string —

Part upto first '?',