protected function FeedsXPathParserBase::errorStart in Feeds XPath Parser 7
Same name and namespace in other branches
- 6 FeedsXPathParserBase.inc \FeedsXPathParserBase::errorStart()
Starts custom error handling.
Return value
bool The previous value of use_errors.
3 calls to FeedsXPathParserBase::errorStart()
- FeedsXPathParserBase::configFormValidate in ./
FeedsXPathParserBase.inc - Overrides parent::sourceFormValidate().
- FeedsXPathParserHTML::setup in ./
FeedsXPathParserHTML.inc - Classes that use FeedsXPathParserBase must implement this.
- FeedsXPathParserXML::setup in ./
FeedsXPathParserXML.inc - Classes that use FeedsXPathParserBase must implement this.
File
- ./
FeedsXPathParserBase.inc, line 555 - Provides the base class for FeedsXPathParserHTML and FeedsXPathParserXML.
Class
- FeedsXPathParserBase
- Base class for the HTML and XML parsers.
Code
protected function errorStart() {
libxml_clear_errors();
if (function_exists('libxml_disable_entity_loader')) {
$this->loader = libxml_disable_entity_loader(TRUE);
}
return libxml_use_internal_errors(TRUE);
}