Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
comment.php
1<?php
2namespace Bitrix\Main\Web\DOM;
3
4class Comment extends Node
5{
6 public function __construct($comment)
7 {
8 $this->init();
9 $this->nodeType = self::COMMENT_NODE;
10
11 $this->nodeValue = $comment;
12 $this->nodeName = '#comment';
13 }
14
15 public function setNodeValue($comment)
16 {
17 $this->nodeValue = $comment;
18 }
19
20 public function getTextContent()
21 {
22 return $this->nodeValue;
23 }
24}