\qfq Support

Summary

Methods
Properties
Constants
appendTypo3ParameterToArray()
arrayToQueryString()
wrapTag()
doAttribute()
appendTooltip()
findInSet()
dateTime2mysql()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

appendTypo3ParameterToArray()

appendTypo3ParameterToArray(array  $queryArray) 

Parameters

array $queryArray

Empty or prefilled assoc array with url parameter

arrayToQueryString()

arrayToQueryString(array  $queryArray) : string

Builds a urlencoded query string of an assoc array.

Parameters

array $queryArray

Returns

string —

Querystring (e.g.: id=23&type=99

wrapTag()

wrapTag(  $tag,   $value, boolean|false  $omitIfValueEmpty = false) : string

Extract Tag from $tag (might contain further attributes) and wrap it around $value. If $flagOmitEmpty==true && $value=='': return ''.

Parameters

$tag
$value
boolean|false $omitIfValueEmpty

Returns

string

doAttribute()

doAttribute(  $type,   $value, boolean  $flagOmitEmpty = true) : string

Format's an attribute: $type=$value. If $flagOmitEmpty==true && $value=='': return ''.

Parameters

$type
$value
boolean $flagOmitEmpty

Returns

string

appendTooltip()

appendTooltip(  $before,   $tooltipText) : string

Wraps some $inner fragment with a CSS styled $tooltipText . CSS is configured in 'Resources/Public/qfq-jqw.css'.

Based on: http://www.w3schools.com/howto/howto_css_tooltip.asp

Parameters

$before
$tooltipText

Returns

string

findInSet()

findInSet(  $needle,   $haystack) : boolean

Search for the parameter $needle in $haystack. The argumenst has to be seperated by ','.

Returns the false if not found or index of found place. Be carefull: use unary operator to compare for 'false'

Parameters

$needle
$haystack

Returns

boolean —

true if found, else false

dateTime2mysql()

dateTime2mysql(  $dateTimeString) : string

Converts a dateTime String to the english format: 1.2.79 > 1979-02-01 00:00:00 01.02.13 3:24 > 1979-02-01 03:24:00 1.2.1979 14:21:5 > 1979-02-01 14:21:05

Parameters

$dateTimeString

Throws

\qfq\UserFormException

Returns

string