Property | Type | Description | |
---|---|---|---|
$debug | |||
$error_title | |||
$field | Declared by Form Sanitizer | ||
$field_config | |||
$field_default | |||
$field_name | |||
$field_value | |||
$input_errors | |||
$ref |
Method | Description | |
---|---|---|
add_field_session ( array $array ) | ||
form_sanitizer ( $value, $default = "", $input_name = FALSE, $is_multiLang = FALSE ) | need to register the file. | |
generate_token ( $form_id = 'phpfusion', $max_tokens = 10, $file = "" ) | ||
getErrorText ( $input_name ) | Fetches the latest error text of this input Important! Ensure your applications do not refresh screen for this error to show. | |
getInputErrors ( ) : array | ||
get_current_field_session ( string $input_name = "" ) : string | Return the current document field session or sessions Use for debug purposes | |
inputHasError ( $input_name ) | ||
pageHash ( $file = "" ) : string | Generates a md5 hash of the current page to make token session unique Eg. /php-fusion/infusions/blog/blog.php for Non | |
remove_token ( ) | ||
safe ( ) : boolean | Request whether safe to proceed at all times | |
sanitize_array ( $array ) | ||
setErrorText ( $input_name, $text ) | Set and override default field error text | |
setInputError ( $input_name ) | ||
set_sessionUserID ( ) : mixed | ID for Session No $userName because it can be changed and tampered via Edit Profile. | |
sniff_token ( ) | Token Sniffer Checks whether a post contains a valid token | |
stop ( ) | Send an Unsafe Signal acorss all PHP-Fusion Components This will automatically halt on all important execution without exiting. | |
unset_field_session ( ) | Marks an input as invalid | |
validate ( ) |
Method | Description | |
---|---|---|
verify_checkbox ( ) | Validate a checkbox If field Value is multiple checkbox, post value must be an array If field value is a radio, post value must not be an array If field value is a number, post value must be a boolean 1 or 0 | |
verify_date ( ) : integer | string | Check and verify submitted date If type is timestamp, it will return a Unix timestamp If type is date, it will return a date | |
verify_email ( ) | Checks if is a valid email address accepts only 50 characters + @ + 4 characters returns str the input or bool FALSE if check fails | |
verify_file_upload ( ) | ||
verify_image_upload ( ) | ||
verify_number ( ) | Checks if is a valid number returns str the input or bool FALSE if check fails TODO: support decimal | |
verify_password ( ) | Checks if is a valid password accepts minimum of 8 and maximum of 64 due to encrypt limit returns str the input or bool FALSE if check fails | |
verify_text ( ) | validate and sanitize a text accepts only 50 characters + @ + 4 characters returns str the sanitized input or bool FALSE if safemode is set and the check fails | |
verify_url ( ) | Checks if is a valid URL require path. |
Method | Description | |
---|---|---|
verify_token ( integer $post_time = 5 ) : boolean | Plain Token Validation - executed at maincore.php through sniff_token() only. |
static public add_field_session ( array $array ) | ||
$array | array |
public form_sanitizer ( $value, $default = "", $input_name = FALSE, $is_multiLang = FALSE ) |
public generate_token ( $form_id = 'phpfusion', $max_tokens = 10, $file = "" ) |
public getErrorText ( $input_name ) | ||
$input_name |
static public get_current_field_session ( string $input_name = "" ) : string | ||
$input_name | string | |
return | string |
public setErrorText ( $input_name, $text ) | ||
$input_name | ||
$text |
static public set_sessionUserID ( ) : mixed | ||
return | mixed |
public sniff_token ( ) |
static public stop ( ) |
public static unset_field_session ( ) |
protected verify_checkbox ( ) |
protected verify_date ( ) : integer | string | ||
return | integer | string |
protected verify_email ( ) |
protected verify_number ( ) |
protected verify_password ( ) |
protected verify_text ( ) |
protected verify_url ( ) |