Commit | Line | Data |
---|---|---|
60a35505 | 1 | <?php |
a9229942 | 2 | |
60a35505 AE |
3 | namespace wcf\system\html\node; |
4 | ||
1d5f9363 | 5 | /** |
4ccf5975 | 6 | * Default implementation for html nodes. |
a9229942 | 7 | * |
4ccf5975 | 8 | * @author Alexander Ebert |
a9229942 | 9 | * @copyright 2001-2019 WoltLab GmbH |
4ccf5975 | 10 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> |
4ccf5975 | 11 | * @since 3.0 |
1d5f9363 | 12 | */ |
a9229942 TD |
13 | abstract class AbstractHtmlNode implements IHtmlNode |
14 | { | |
15 | /** | |
16 | * tag name used to identify elements consumed by this node | |
17 | * @var string | |
18 | */ | |
19 | protected $tagName = ''; | |
20 | ||
21 | /** | |
22 | * placeholder for inner content when performing direct html replacement | |
23 | * @var string | |
24 | */ | |
25 | const PLACEHOLDER = '<!-- META_CODE_INNER_CONTENT -->'; | |
26 | ||
27 | /** | |
28 | * @inheritDoc | |
29 | */ | |
30 | public function getTagName() | |
31 | { | |
32 | return $this->tagName; | |
33 | } | |
34 | ||
35 | /** | |
36 | * @inheritDoc | |
37 | */ | |
38 | public function replaceTag(array $data) | |
39 | { | |
0befcb4a | 40 | throw new \BadMethodCallException("Method replaceTag() is not supported by " . static::class); |
a9229942 | 41 | } |
60a35505 | 42 | } |