inc\classes\FieldChecker.php
FieldChecker
Checks strings
- Author
- Sergey Dilong
- License
- GPL-2.0
- Package
- Temply-Account\Core
\FieldChecker
Package: Temply-Account\Core
Parameters
Returns
Parameters
Returns
Throws
Field Checker
Use to check if input data is correct
- Author
- Sergey Dilong
- License
- GPL-2.0
Properties
Methods

__construct(array<mixed,mixed> $r) : booleanSet rules
Sets rules for FieldChecker object
| Name | Type | Description |
|---|---|---|
| $r | array<mixed,mixed> | Rules to check
|
| Type | Description |
|---|---|
| boolean |

set(mixed $q) : booleanCheck
Applies and saves a value to the object with checking
| Name | Type | Description |
|---|---|---|
| $q | mixed | The value |
| Type | Description |
|---|---|
| boolean |
| Exception | Description |
|---|---|
| \apiException | * [107] Check failed |