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