| 1 | <?php |
||
| 16 | class DisallowElement extends TemplateCheck |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string Local name of the disallowed element |
||
| 20 | */ |
||
| 21 | public $elName; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Constructor |
||
| 25 | * |
||
| 26 | * @param string $elName Local name of the disallowed element |
||
| 27 | */ |
||
| 28 | 4 | public function __construct($elName) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Test for the presence of an element of given name |
||
| 36 | * |
||
| 37 | * @param DOMElement $template <xsl:template/> node |
||
| 38 | * @param Tag $tag Tag this template belongs to |
||
| 39 | * @return void |
||
| 40 | */ |
||
| 41 | 4 | public function check(DOMElement $template, Tag $tag) |
|
| 55 | } |