Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
IsTrueValidator.php
Go to the documentation of this file.
1<?php
2
4
7
9
10 public function __construct() {
11 $this->message = "This value should return true";
12 }
13
14 public function validate($value) {
15 parent::validate ( $value );
16 if ($this->notNull !== false) {
17 return UString::isBooleanTrue ( $value );
18 }
19 return true;
20 }
21
27 public function getParameters(): array {
28 return [ "value" ];
29 }
30}
31
getParameters()
{{}\Ubiquity\contents\validation\validators\ValidatorInterfacegetParameters()}
String utilities.
Definition UString.php:15