ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Bool.php
Go to the documentation of this file.
1<?php
2
7{
8
12 protected $name;
13
17 public $minimized = true;
18
22 public function __construct($name = false)
23 {
24 $this->name = $name;
25 }
26
33 public function validate($string, $config, $context)
34 {
35 return $this->name;
36 }
37
42 public function make($string)
43 {
44 return new HTMLPurifier_AttrDef_HTML_Bool($string);
45 }
46}
47
48// vim: et sw=4 sts=4
An exception for terminatinating execution or to throw for unit testing.
Validates a boolean attribute.
Definition: Bool.php:7
__construct($name=false)
Definition: Bool.php:22
validate($string, $config, $context)
Definition: Bool.php:33
Base class for all validating attribute definitions.
Definition: AttrDef.php:14
$config
Definition: bootstrap.php:15
$context
Definition: webdav.php:25