checkFrontendGlobals()
checkRequestBelang()
checkRequestForbiddenParameter()
checkRequestMustbeNumericParameter()
checkRequestSession()
checkRequests()
checkSession()
escapeDB()
escapeString()
filter()
getAcceptedBelangValues()
getForbiddenParameters()
getMustbeNumericParameters()
isBoolean()
isInteger()
isMySQLDate()
isMySQLDateTime()
isString()
toBoolean()
toInteger()
toString()
unFilter()
unescapeDB()
$_acceptedBelangValues
$_forbiddenParameters
$_mustbeNumericParameters
Contenido Security class
checkFrontendGlobals() : void
Validates client and language related variables and takes care that their content is really a numeric value.
Logic in this function is taken over from front_content.php (v 4.8.12, line 164 - 192).
| TODO | : Need a solution for used globals |
|---|
checkRequestBelang() : bool | void
\Contenido_Security_Exception |
if existing backend language parameter is not valid |
|---|
boolvoidTrue on success otherwhise nothing.checkRequestForbiddenParameter() : bool | void
\Contenido_Security_Exception |
if the request contains one of forbidden parameters. |
|---|
boolvoidTrue on success otherwhise nothing.checkRequestMustbeNumericParameter() : bool
Contrary to other request checks, this method don't throws a exception. It just insures that incomming values are really numeric, by type casting them to an integer.
boolJust truecheckRequestSession() : bool | void
\Contenido_Security_Exception |
if contenido parameter in request don't matches the required format |
|---|
boolvoidTrue on success otherwhise nothing.checkRequests() : bool | void
| access | public |
|---|
\Contenido_Security_Exception |
if one of the checks fails |
|---|
boolvoidTrue on success otherwhise nothing.checkSession() : true
| access | public |
|---|---|
| deprecated | Use checkRequestSession() instead due to better naming conventions |
| TODO | : Should be removed, but later in few years... |
\Contenido_Security_Exception |
if contenido parameter in request don't matches the required format |
|---|
trueescapeDB(string $sString, \DB_Contenido $oDB, boolean $bUndoAddSlashes) : string
| static |
|---|
stringInput string
booleanFlag for undo addslashes (optional, default: true)
stringConverted stringescapeString(string $sString) : string
| static |
|---|
stringInput string
stringConverted stringfilter(string $sString, \DB_Contenido $oDb) : string
| static |
|---|
stringInput string
stringFiltered stringgetAcceptedBelangValues() : array
arraygetForbiddenParameters() : array
arraygetMustbeNumericParameters() : array
arrayisBoolean(string $sVar) : boolean
| static |
|---|
stringInput string
booleanCheck stateisInteger(string $sVar) : boolean
| static |
|---|
stringInput string
booleanCheck stateisMySQLDate(string $sVar, boolean $bCheckValid) : boolean
| static | |
|---|---|
| author | Ortwin Pinke |
| since | ConLite 0.1.0 |
stringgiven date/string
booleanadditional use of checkdate for validation
booleantrue|falseisMySQLDateTime($sVar, boolean $bCheckValid) : boolean
| static | |
|---|---|
| author | Ortwin Pinke |
| since | ConLite 0.1.0 |
booleanadditional use of checkdate for validation
booleantrue|falseisString(string $sVar) : boolean
| static |
|---|
stringInput string
booleanCheck statetoBoolean(string $sString) : boolean
| static | |
|---|---|
| deprecated | since ConLite 0.1.0, this function will be deleted in future versions, use buildin PHP-functions |
stringInput string
booleanType casted input stringtoInteger(string $sString) : integer
| static | |
|---|---|
| deprecated | since ConLite 0.1.0, this function will be deleted in future versions, use buildin PHP-functions |
stringInput string
integerType casted input stringtoString(string $sString, boolean $bHTML, string $sAllowableTags) : string
| static |
|---|
stringInput string
booleanIf true check with strip_tags and stripslashes
stringAllowable tags if $bHTML is true
stringConverted stringunFilter(string $sString) : string
| static |
|---|
stringInput string
stringUnfiltered stringunescapeDB(string $sString) : string
| static |
|---|
stringInput string
stringConverted string$_acceptedBelangValues : array
$_forbiddenParameters : array
$_mustbeNumericParameters : array