public function AbstractFeed::__call in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/zendframework/zend-feed/src/Reader/AbstractFeed.php \Zend\Feed\Reader\AbstractFeed::__call()
- 8.0 vendor/zendframework/zend-feed/src/Writer/AbstractFeed.php \Zend\Feed\Writer\AbstractFeed::__call()
- 8.0 vendor/zendframework/zend-feed/src/Reader/Feed/AbstractFeed.php \Zend\Feed\Reader\Feed\AbstractFeed::__call()
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/Writer/AbstractFeed.php \Zend\Feed\Writer\AbstractFeed::__call()
Method overloading: call given method on first extension implementing it
Parameters
string $method:
array $args:
Return value
mixed
Throws
Exception\BadMethodCallException if no extensions implements the method
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ AbstractFeed.php, line 814
Class
Namespace
Zend\Feed\WriterCode
public function __call($method, $args) {
foreach ($this->extensions as $extension) {
try {
return call_user_func_array([
$extension,
$method,
], $args);
} catch (Exception\BadMethodCallException $e) {
}
}
throw new Exception\BadMethodCallException('Method: ' . $method . ' does not exist and could not be located on a registered Extension');
}