public function __construct() { parent::__construct(); if ($GLOBALS['HTMLPurifierTest']['PH5P']) { require_once 'HTMLPurifier/Lexer/PH5P.php'; } }
public function __construct() { parent::__construct(); if ($GLOBALS['HTMLPurifierTest']['PEAR'] && version_compare(PHP_VERSION, '5.3', '<')) { require_once 'HTMLPurifier/Lexer/PEARSax3.php'; $this->_has_pear = true; } if ($GLOBALS['HTMLPurifierTest']['PH5P']) { require_once 'HTMLPurifier/Lexer/PH5P.php'; } }
public function __construct() { parent::__construct(); // E_STRICT = 2048, int used for PHP4 compat: this check disables // PEAR if PHP 5 strict mode is on, since the class is not strict safe if ($GLOBALS['HTMLPurifierTest']['PEAR'] && (error_reporting() & 2048) != 2048) { require_once 'HTMLPurifier/Lexer/PEARSax3.php'; $this->_has_pear = true; } if ($GLOBALS['HTMLPurifierTest']['PH5P']) { require_once 'HTMLPurifier/Lexer/PH5P.php'; } }
public function __construct() { parent::__construct(); $this->_entity_lookup = HTMLPurifier_EntityLookup::instance(); }
public function __construct($path) { $this->path = $path; parent::__construct($path); }
public function __construct() { $this->lexer = new HTMLPurifier_Lexer_DirectLex(); parent::__construct(); }