/** * Constructor. * * Primary job is to initialize the XMLParser */ function __construct() { if (!function_exists('xml_parser_create_ns')) { // this should already be checked by this point throw new MWException('XMP support requires XML Parser'); } $this->items = XMPInfo::getItems(); $this->resetXMLParser(); }
/** * Constructor. * * Primary job is to initialize the XMLParser */ function __construct(LoggerInterface $logger = null) { if (!function_exists('xml_parser_create_ns')) { // this should already be checked by this point throw new RuntimeException('XMP support requires XML Parser'); } if ($logger) { $this->setLogger($logger); } else { $this->setLogger(new NullLogger()); } $this->items = XMPInfo::getItems(); $this->resetXMLParser(); }