Whoops, forgot to edit WHATSNEW
[htmlpurifier.git] / library / HTMLPurifier / AttrDef / HTML / FrameTarget.php
blobd79ba12b3f8e6672cffbbcea012b43ec1c96e090
1 <?php
3 /**
4 * Special-case enum attribute definition that lazy loads allowed frame targets
5 */
6 class HTMLPurifier_AttrDef_HTML_FrameTarget extends HTMLPurifier_AttrDef_Enum
9 /**
10 * @type array
12 public $valid_values = false; // uninitialized value
14 /**
15 * @type bool
17 protected $case_sensitive = false;
19 public function __construct()
23 /**
24 * @param string $string
25 * @param HTMLPurifier_Config $config
26 * @param HTMLPurifier_Context $context
27 * @return bool|string
29 public function validate($string, $config, $context)
31 if ($this->valid_values === false) {
32 $this->valid_values = $config->get('Attr.AllowedFrameTargets');
34 return parent::validate($string, $config, $context);
38 // vim: et sw=4 sts=4