51 public function attach(\SplObserver $observer)
53 $this->observers[] = $observer;
62 public function detach(\SplObserver $observer)
64 $key = array_search($observer, $this->observers,
true);
66 unset($this->observers[$key]);
77 foreach ($this->observers as $observer) {
78 $observer->update($this);
92 if (!extension_loaded($this->requiredPhpExtensions)) {
93 $prefix = PHP_SHLIB_SUFFIX ===
'dll' ?
'php_' :
'';
94 if (!(((
bool)ini_get(
'enable_dl') && !(
bool)ini_get(
'safe_mode')) && function_exists(
'dl') && dl($prefix . $this->requiredPhpExtensions . PHP_SHLIB_SUFFIX))) {
107 abstract public function parseXml($file);