You are here

public function AbstractFeed::__call in Zircon Profile 8

Same name in this branch
  1. 8 vendor/zendframework/zend-feed/src/Reader/AbstractFeed.php \Zend\Feed\Reader\AbstractFeed::__call()
  2. 8 vendor/zendframework/zend-feed/src/Writer/AbstractFeed.php \Zend\Feed\Writer\AbstractFeed::__call()
  3. 8 vendor/zendframework/zend-feed/src/Reader/Feed/AbstractFeed.php \Zend\Feed\Reader\Feed\AbstractFeed::__call()
Same name and namespace in other branches
  1. 8.0 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

AbstractFeed

Namespace

Zend\Feed\Writer

Code

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');
}