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 |
---|
bool
void
True on success otherwhise nothing.checkRequestForbiddenParameter() : bool | void
\Contenido_Security_Exception |
if the request contains one of forbidden parameters. |
---|
bool
void
True 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.
bool
Just truecheckRequestSession() : bool | void
\Contenido_Security_Exception |
if contenido parameter in request don't matches the required format |
---|
bool
void
True on success otherwhise nothing.checkRequests() : bool | void
access | public |
---|
\Contenido_Security_Exception |
if one of the checks fails |
---|
bool
void
True 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 |
---|
true
escapeDB(string $sString, \DB_Contenido $oDB, boolean $bUndoAddSlashes) : string
static |
---|
string
Input string
boolean
Flag for undo addslashes (optional, default: true)
string
Converted stringescapeString(string $sString) : string
static |
---|
string
Input string
string
Converted stringfilter(string $sString, \DB_Contenido $oDb) : string
static |
---|
string
Input string
string
Filtered stringgetAcceptedBelangValues() : array
array
getForbiddenParameters() : array
array
getMustbeNumericParameters() : array
array
isBoolean(string $sVar) : boolean
static |
---|
string
Input string
boolean
Check stateisInteger(string $sVar) : boolean
static |
---|
string
Input string
boolean
Check stateisMySQLDate(string $sVar, boolean $bCheckValid) : boolean
static | |
---|---|
author | Ortwin Pinke |
since | ConLite 0.1.0 |
string
given date/string
boolean
additional use of checkdate for validation
boolean
true|falseisMySQLDateTime($sVar, boolean $bCheckValid) : boolean
static | |
---|---|
author | Ortwin Pinke |
since | ConLite 0.1.0 |
boolean
additional use of checkdate for validation
boolean
true|falseisString(string $sVar) : boolean
static |
---|
string
Input string
boolean
Check statetoBoolean(string $sString) : boolean
static | |
---|---|
deprecated | since ConLite 0.1.0, this function will be deleted in future versions, use buildin PHP-functions |
string
Input string
boolean
Type 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 |
string
Input string
integer
Type casted input stringtoString(string $sString, boolean $bHTML, string $sAllowableTags) : string
static |
---|
string
Input string
boolean
If true check with strip_tags and stripslashes
string
Allowable tags if $bHTML is true
string
Converted stringunFilter(string $sString) : string
static |
---|
string
Input string
string
Unfiltered stringunescapeDB(string $sString) : string
static |
---|
string
Input string
string
Converted string$_acceptedBelangValues : array
$_forbiddenParameters : array
$_mustbeNumericParameters : array