t3lib_matchCondition Klassenreferenz
Aufstellung aller Elemente
Beschreibung der Konstruktoren und Destruktoren
| t3lib_matchCondition::__construct |
( |
|
) |
|
Constructor for this class
- Rückgabe:
- void
Dokumentation der Elementfunktionen
| t3lib_matchCondition::browserInfo |
( |
$ |
useragent |
) |
|
Generates an array with abstracted browser information This method is used in the function match() in this class
- Parameter:
-
- Rückgabe:
- array Contains keys "browser", "version", "system" private
- Siehe auch:
- match()
| t3lib_matchCondition::browserInfo_version |
( |
$ |
tmp |
) |
|
Returns the version of a browser; Basically getting doubleval() of the input string, stripping of any non-numeric values in the beginning of the string first.
- Parameter:
-
| string | A string with version number, eg. "/7.32 blablabla" |
- Rückgabe:
- double Returns double value, eg. "7.32"
| t3lib_matchCondition::evalConditionStr |
( |
$ |
string |
) |
|
| t3lib_matchCondition::getGlobal |
( |
$ |
var, |
|
|
$ |
source = NULL | |
|
) |
| | |
Return global variable where the input string $var defines array keys separated by "|" Example: $var = "HTTP_SERVER_VARS | something" will return the value $GLOBALS['HTTP_SERVER_VARS']['something'] value
- Parameter:
-
| string | Global var key, eg. "HTTP_GET_VAR" or "HTTP_GET_VARS|id" to get the GET parameter "id" back. |
| array | Alternative array than $GLOBAL to get variables from. |
- Rückgabe:
- mixed Whatever value. If none, then blank string. private
| t3lib_matchCondition::getGP_ENV_TSFE |
( |
$ |
var |
) |
|
| t3lib_matchCondition::match |
( |
$ |
condition_line |
) |
|
Matching TS condition
- Parameter:
-
- Rückgabe:
- boolean True if matched
| t3lib_matchCondition::matchWild |
( |
$ |
haystack, |
|
|
$ |
needle | |
|
) |
| | |
Matching two strings against each other, supporting a "*" wildcard or (if wrapped in "/") PCRE regular expressions
- Parameter:
-
| string | The string in which to find $needle. |
| string | The string to find in $haystack |
- Rückgabe:
- boolean Returns true if $needle matches or is found in (according to wildcards) in $haystack. Eg. if $haystack is "Netscape 6.5" and $needle is "Net*" or "Net*ape" then it returns true.
| t3lib_matchCondition::t3lib_matchCondition |
( |
|
) |
|
Constructor for this class
- Rückgabe:
- void
| t3lib_matchCondition::testNumber |
( |
$ |
test, |
|
|
$ |
value | |
|
) |
| | |
Will evaluate a $value based on an operator: "<", ">" or "=" (default)
- Parameter:
-
| string | The value to compare with on the form [operator][number]. Eg. "< 123" |
| integer | The number |
- Rückgabe:
- boolean If $value is "50" and $test is "< 123" then it will return true.
| t3lib_matchCondition::whichDevice |
( |
$ |
useragent |
) |
|
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
- /srv/www/vhosts/typo3.local/typo3_src-4.2.10/t3lib/class.t3lib_matchcondition.php