XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
DenyElementDecorator.php
Go to the documentation of this file.
1
<?php
2
6
class
HTMLPurifier_AttrDef_CSS_DenyElementDecorator
extends
HTMLPurifier_AttrDef
7
{
8
public
$def
,
$element
;
9
14
public
function
__construct
(
$def
,
$element
) {
15
$this->def =
$def
;
16
$this->element =
$element
;
17
}
21
public
function
validate
($string,
$config
, $context) {
22
$token
= $context->get(
'CurrentToken'
,
true
);
23
if
(
$token
&&
$token
->name == $this->element)
return
false
;
24
return
$this->def->validate($string,
$config
, $context);
25
}
26
}
27
28
// vim: et sw=4 sts=4
L:
0xoops
xoops-2.5.6
htdocs
xoops_lib
modules
protector
library
HTMLPurifier
AttrDef
CSS
DenyElementDecorator.php
Generated on Fri May 10 2013 01:04:29 for XOOPS 2.5.6 by
1.8.3.1