Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
parser.php
1<?php
2namespace Bitrix\Main\Web\DOM;
3
4abstract class Parser
5{
6 /*@var $htmlParser HtmlParser */
7 private static $htmlParser;
8
9 /*@var $config ParserConfig */
10 protected $config;
11
12 public static function getHtmlParser()
13 {
14 if (self::$htmlParser == null)
15 {
16 self::$htmlParser = new HtmlParser();
17 }
18
19 return self::$htmlParser;
20 }
21
23 {
24 $this->config = $config;
25 return $this;
26 }
27
28 public function getConfig()
29 {
30 return $this->config;
31 }
32
33 abstract public function parse($text = "", Node $toNode);
34 abstract public function getSource(Node $node);
35}
parse($text="", Node $toNode)
setConfig(ParserConfig $config)
Definition parser.php:22