uawdijnntqw1x1x1
IP : 18.189.157.185
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
sudancam
/
.
/
.
/
www
/
wp-content
/
plugins
/
wp-rss-aggregator
/
src
/
Util
/
CallbackIterator.php
/
/
<?php namespace RebelCode\Wpra\Core\Util; use Iterator; use OuterIterator; /** * A decorator iterator that passes each value yielded from the inner iterator through a callback before yielding. * * @since 4.16 */ class CallbackIterator implements OuterIterator { /** * @since 4.16 * * @var Iterator */ protected $inner; /** * @since 4.16 * * @var callable */ protected $callback; /** * Constructor. * * @since 4.16 * * @param Iterator $inner The inner iterator. * @param callable $callback The callback function to run for each element. Receives the original element from the * inner iterator and the corresponding key as arguments. */ public function __construct(Iterator $inner, callable $callback) { $this->inner = $inner; $this->callback = $callback; } /** * @inheritdoc * * @since 4.16 */ public function getInnerIterator() { return $this->inner; } /** * @inheritdoc * * @since 4.16 */ public function rewind() { $this->inner->rewind(); } /** * @inheritdoc * * @since 4.16 */ public function key() { return $this->inner->key(); } /** * @inheritdoc * * @since 4.16 */ public function current() { return call_user_func_array($this->callback, [$this->inner->current(), $this->inner->key()]); } /** * @inheritdoc * * @since 4.16 */ public function next() { $this->inner->next(); } /** * @inheritdoc * * @since 4.16 */ public function valid() { return $this->inner->valid(); } }
/home/sudancam/././www/wp-content/plugins/wp-rss-aggregator/src/Util/CallbackIterator.php