Layer: Validator · Source: lib/validator/PostValidator.php:21 (lines 21–78)
class PostValidator
Validates post form field values.
Pure validation rules with no HTTP or database dependencies. Can be tested without a web server or database connection.
| Tag | Value |
|---|---|
@category | Validator |
@author | M.Noermoehammad |
@license | MIT |
@version | 1.0 |
@since | Since Release 1.0 |
No parent, interface or trait. This is a root type.
None.
| Visibility | Type | Name | Default | Line |
|---|---|---|---|---|
private | (untyped) | $formFieldLimits | [ 'post_title' ⇒ 200, 'post_summary' ⇒ 320, 'post_tags' =… | 24 |
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public | validate() | Validate post data. | 37 |
public function validate(PostRequestDto $dto)
lines 37–77 (41)
Validate post data.
| Parameter | Type | Default | Description |
|---|---|---|---|
$dto | ''PostRequestDto'' | required | none |
Returns: (none declared) — ValidationResult
| Alias | Fully-qualified name |
|---|---|
PostRequestDto | ''Scriptlog\Dto\PostRequestDto'' |
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.