LEPTON CMS 7.2.0
feel free to keep it strictly simple...
|
Public Member Functions | |
setStrictLookInside (string $sNewValue='') | |
testPostValues (array &$aValueList) | |
testGetValues (array &$aValueList) | |
testValues (array &$aValueList) | |
get_request (string $aName="", string|int|array|float|bool|null $aDefault=null, string $type="", string|array $range="") | |
filterValue (string|int|array|float|bool|null $return_value, string $type, string|int|array|float|bool|null $aDefault=null, string|array $range="") | |
Static Public Member Functions | |
static | add_slash (string &$sText="") |
static | getRequest (string $sField="") |
static | getPageID () |
Data Fields | |
const | USE_POST = "post" |
const | USE_GET = "get" |
const | USE_REQUEST = "request" |
const | USE_SESSION = "session" |
const | USE_SERVER = "server" |
const | ALLOWED_INSIDE |
bool | $error_mode = false |
string | $logFileName = "LEPTON_request.log" |
string | $logFilePath = "/temp/secure/" |
array | $errors = [] |
Static Public Attributes | |
static | $instance |
Protected Member Functions | |
testType (string $name, string $expected, string $getTypeResult) | |
writeInfoToLogfile (string $sMessage="") | |
Protected Attributes | |
string | $strict_looking_inside = "post" |
This file is part of LEPTON Core, released under the GNU GPL Please see LICENSE and COPYING files in your package for details, specially for terms and warranties.
NOTICE:LEPTON CMS Package has several different licenses. Please see the individual license in the header of each single file or info.php of modules and templates.
Definition at line 25 of file lepton_request.php.
|
static |
Definition at line 339 of file lepton_request.php.
filterValue | ( | string|int|array|float|bool|null | $return_value, |
string | $type, | ||
string|int|array|float|bool|null | $aDefault = null, | ||
string|array | $range = "" ) |
LEPTOPN VII.1
string | int | array | float | null | $return_value | |
string | $type | |
string | int | array | float | null | $aDefault | |
string | array | $range |
Definition at line 546 of file lepton_request.php.
get_request | ( | string | $aName = "", |
string|int|array|float|bool|null | $aDefault = null, | ||
string | $type = "", | ||
string|array | $range = "" ) |
Public function that looks for a value in the $_POST or $_GET super-variables. If it is found and the type match it is returned. If not, the given default value is returned. There are also optional settings for the situation, the value has to be in a given range, and/or the string has to be a given size.
string | name Name of the value/key |
mixed | default (optional) The default of this value |
string | type (optional) The type of the value, see list below |
array | range (optional) The settings for testing if the value is inside a range. |
@retuns mixed the value
NOTICE: the range-settings have no effekt if the default-value is set to null.
Supported types are (quick-, short-, long-notation)
integer Any integer integer+ Any positive integer +0 integer- Any negative integer +0
string Any string string_clean Any string - HTML tags will be removed! string_chars Any String - but tags are converted via htmlspecialchars! string_allowed Any String - HTML tags are removed, exept the given one in "range"!
email Any mail adress array Any array (e.g. from a multible select)
Range got following keys/options
min the minmium, as for integers the lowest number, as for strings the min. number of chars. default: 0; max the maximum, as for integers the heights number, as for strings the max. number of chars. default: 255; use what kind of use if the value is not inside the range, supported types are - default use the given default value (integer, string, null) - min however (value is less or more out of the range) use the min-value. - max however (value is less or more out of the range) use the max-value. - near if the value is less, use the min-value, if it is more, use the max-value. - fill only for strings. - cut only for strings. default: 'default' char default: ' 'if #fill is used and the number of chars is less than the min-value, the string is 'filled' up with this char. default: ' ' (space|blank)
If one of the keys/options is missing, the default-settings are used. NOTICE: the range-settings have no effekt if the default-value is set to null.
Exception |
Definition at line 270 of file lepton_request.php.
|
static |
Definition at line 498 of file lepton_request.php.
|
static |
Definition at line 467 of file lepton_request.php.
setStrictLookInside | ( | string | $sNewValue = '' | ) |
Definition at line 91 of file lepton_request.php.
testGetValues | ( | array & | $aValueList | ) |
Testing a list of values against the $_GET array and returns a linear list of the results. This method is similar to testPostValues
array | An array with an assoc. subarray for the 'keys' to test for. |
Definition at line 170 of file lepton_request.php.
testPostValues | ( | array & | $aValueList | ) |
Testing a list of values against the $_POST array and returns a linear list of the results.
array | An array with an assoc. subarray for the 'keys' to test for. |
Definition at line 130 of file lepton_request.php.
|
protected |
Definition at line 854 of file lepton_request.php.
testValues | ( | array & | $aValueList | ) |
Same as above but not force to an entry like e.g. $_GET or $_POST
array | An array with an assoc. subarray for the 'keys' to test for. |
Definition at line 195 of file lepton_request.php.
|
protected |
Definition at line 882 of file lepton_request.php.
bool $error_mode = false |
By default we are not collecting any errors
Definition at line 63 of file lepton_request.php.
array $errors = [] |
Public var that holds the errors in an array.
Definition at line 89 of file lepton_request.php.
|
static |
Definition at line 43 of file lepton_request.php.
string $logFileName = "LEPTON_request.log" |
The name of the log file of the request errors.
@type string @access public
Definition at line 71 of file lepton_request.php.
string $logFilePath = "/temp/secure/" |
The default path for the (error-) log file.
@type string @access public
Definition at line 79 of file lepton_request.php.
|
protected |
Public var to handle the way the class should look for the value; supported types are 'post', 'get' or 'request'
@type string @default "post"
Definition at line 53 of file lepton_request.php.
const ALLOWED_INSIDE |
Definition at line 35 of file lepton_request.php.
const USE_GET = "get" |
Definition at line 30 of file lepton_request.php.
const USE_POST = "post" |
Definition at line 29 of file lepton_request.php.
const USE_REQUEST = "request" |
Definition at line 31 of file lepton_request.php.
const USE_SERVER = "server" |
Definition at line 33 of file lepton_request.php.
const USE_SESSION = "session" |
Definition at line 32 of file lepton_request.php.