Request class
| version | $Id: class.request.php 3145 2012-09-05 11:10:12Z simon.sprankel $ |
|---|---|
| author | Andreas Kummer, w3concepts AG |
| copyright | Copyright © 2008, w3concepts AG |
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
finish() : Object
Must be called after registering the required parameters.
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
ObjectReference to the current instance.get(String $sName, $bWithErrors) : Mixed
Null if it does not exist or if it is not valid.
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
StringsName Name of the parameter.
MixedValue of the parameter or null.getInstance() : Object
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
ObjectReference to the current single instance of the class.hasValidationErrors(String $sRequestType, Array $aParams) : Boolean
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
StringsRequestType Request type.
ArrayaParams Array of parameters to be checked.
BooleanTrue if no validation errors occured. False otherwise.post(String $sName, $bWithErrors) : Mixed
Null if it does not exist or if it is not valid.
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
StringsName Name of the parameter.
MixedValue of the parameter or null.register(String $sRequestType, String $sName, Integer $iType, Float $iMin, Float $iMax, String $sRegex, $iTransformation) : Object
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
StringsRequestType Either POST, GET or COOKIE.
StringsName Parameter name.
IntegeriType Parameter type (either integer, float or string).
FloatiMin Minimum length (string) or minimum value (float, integer).
FloatiMax Maximum length (string) or maximum value (float, integer).
StringsRegex Regex pattern the value is checked against.
ObjectReference to the current instance to enable method chaining.request(String $sName, $bWithErrors) : Mixed
Null if it does not exist or if it is not valid.
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
StringsName Name of the parameter.
MixedValue of the parameter or null.__construct()
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
getVar(String $sRequestType, String $sName, $bWithErrors) : Mixed
The method throws an exception if the specified paramter has not yet been registered.
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
StringsRequestType Request type (GET, POST or COOKIE).
StringsName Name of the parameter.
MixedValue of the specified parameter.hasError(\Reference $mItem, Mixed $mKey) : Void
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
\ReferencemItem Reference to the current item.
MixedmKey Current key.
VoidisFloat(Mixed $mValue) : Boolean
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
MixedmValue Value to be checked.
BooleanTrue if the value is a float or integer value.isInteger(Mixed $mValue) : Boolean
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
MixedmValue Value to be checked.
BooleanTrue if the value is an integer value.isRegistered($sName, $sRequestType)
setErrorsToNull(\Reference $mItem, Mixed $mKey) : Void
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
\ReferencemItem Reference to the item of the array to be cleared.
MixedmKey Key of the current item to be processed.
VoidsetValidationError(Boolean $bValidationError) : Void
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
BooleanbValidationError True, if a validation error occured.
Voidtransform(String $sValue, Integer $iRules) : String
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
StringsValue Value to be transformed.
IntegeriRules Sum of the transformation rules to be applied.
StringTransformed value.validateArray(\Reference $mItem, Mixed $mKey, Array $aParams) : Void
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
\ReferencemItem Reference to the item of the array to be validated.
MixedmKey Key of the current item to be processed.
ArrayaParams Parameter array to be used in the validation process.
VoidvalidateValue(Mixed $mValue, Integer $iType, Integer $iMin, Integer $iMax, Integer $sRegex, $iTransformation) : Mixed
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
MixedmValue Value to be validated.
IntegeriType Type (integer, float or string).
IntegeriMin Minimum value (integer and float) or minimum length (string).
IntegeriMax Maximum value (integer and float) or maximum length (string).
IntegeriTransformation Sum of transformations to be applied.
MixedEither the transformed and validated value or null.$COOKIE
$COOKIEcleared
$GET
$GETcleared
$POST
$POSTcleared
$bHasValidationErrors
COOKIE
DATETIME_PATTERN
DATETIME_PATTERN_DE
DATE_PATTERN_DE
DATE_PATTERN_ISO
GET
HEXDEC_HASH
POST
TRANS_STRIP_HTML
TRANS_STRIP_PHP
TYPE_ARRAY
TYPE_FLOAT
TYPE_INTEGER
TYPE_STRING