Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/lib/web/dom/ |
Upload File : |
<?php namespace Bitrix\Main\Web\DOM; abstract class Parser { /*@var $htmlParser HtmlParser */ private static $htmlParser; /*@var $config ParserConfig */ protected $config; public static function getHtmlParser() { if (self::$htmlParser == null) { self::$htmlParser = new HtmlParser(); } return self::$htmlParser; } public function setConfig(ParserConfig $config) { $this->config = $config; return $this; } public function getConfig() { return $this->config; } abstract public function parse($text = "", Node $toNode); abstract public function getSource(Node $node); }