ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
BaseParserClass.php
Go to the documentation of this file.
1<?php
2
4
6{
7 protected static function boolean($value)
8 {
9 if (is_object($value)) {
10 $value = (string) $value;
11 }
12
13 if (is_numeric($value)) {
14 return (bool) $value;
15 }
16
17 return $value === strtolower('true');
18 }
19}
An exception for terminatinating execution or to throw for unit testing.