1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
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}
Определения node.php:5
getConfig()
Определения parser.php:28
static getHtmlParser()
Определения parser.php:12
parse($text="", Node $toNode)
setConfig(ParserConfig $config)
Определения parser.php:22
$text
Определения template_pdf.php:79