Ubiquity
2.5.2
php rapid development framework
Loading...
Searching...
No Matches
Boolean.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ubiquity\contents\transformation\transformers
;
4
5
use
Ubiquity\contents\transformation\TransformerViewInterface
;
6
7
class
Boolean
implements
TransformerViewInterface
{
8
9
public
static
function
toView
($value) {
10
if
($value !=
null
)
11
return \filter_var ( $value, FILTER_VALIDATE_BOOLEAN ) ===
true
;
12
}
13
}
Ubiquity\contents\transformation\transformers\Boolean
Definition
Boolean.php:7
Ubiquity\contents\transformation\transformers\Boolean\toView
static toView($value)
Transforms normalized data to view data.
Definition
Boolean.php:9
Ubiquity\contents\transformation\TransformerViewInterface
Transform an instance for being displayed in a view.
Definition
TransformerViewInterface.php:15
Ubiquity\contents\transformation\transformers
Definition
Crypt.php:2
C:
Users
myadd
Documents
GitHub
ubiquity-doc-api
vendor
phpmv
ubiquity
src
Ubiquity
contents
transformation
transformers
Boolean.php
Generated on Sun Dec 10 2023 15:04:13 for
Ubiquity
by
doxygen
1.9.8