public static function PHPExcel_Settings::setLibXmlLoaderOptions in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Settings.php \PHPExcel_Settings::setLibXmlLoaderOptions()
Set default options for libxml loader
Parameters
int $options Default options for libxml loader:
1 call to PHPExcel_Settings::setLibXmlLoaderOptions()
- PHPExcel_Settings::getLibXmlLoaderOptions in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Settings.php - Get default options for libxml loader. Defaults to LIBXML_DTDLOAD | LIBXML_DTDATTR when not set explicitly.
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Settings.php, line 364
Class
Code
public static function setLibXmlLoaderOptions($options = null) {
if (is_null($options) && defined(LIBXML_DTDLOAD)) {
$options = LIBXML_DTDLOAD | LIBXML_DTDATTR;
}
if (version_compare(PHP_VERSION, '5.2.11') >= 0) {
@libxml_disable_entity_loader($options == (LIBXML_DTDLOAD | LIBXML_DTDATTR));
}
self::$_libXmlLoaderOptions = $options;
}