\qfq Sanatize

Class Sanatize

Summary

Methods
Properties
Constants
sanatize()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
No private properties found
N/A

Methods

sanatize()

sanatize(string  $value, string  $sanatizeClass = SANATIZE_DEFAULT) : string

Sanatize: check value by sanatize class. Return verified value or empty string if failed.

Parameters

string $value
  • value to check
string $sanatizeClass
  • class used to check

Throws

\qfq\exceptions\CodeException

Returns

string —
  • if check failed: empty string, if check is ok: value

__construct()

__construct()