4 * Special-case enum attribute definition that lazy loads allowed frame targets
6 class HTMLPurifier_AttrDef_HTML_FrameTarget extends HTMLPurifier_AttrDef_Enum
12 public $valid_values = false; // uninitialized value
17 protected $case_sensitive = false;
19 public function __construct()
24 * @param string $string
25 * @param HTMLPurifier_Config $config
26 * @param HTMLPurifier_Context $context
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);