rfc:functional-elements:call-iterator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
rfc:functional-elements:call-iterator [2008/03/16 14:13] – Adding CallIterator example implementation lstrojnyrfc:functional-elements:call-iterator [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ===== class CallIterator ===== ===== class CallIterator =====
-==== Example implementation ====+ 
 + 
 +==== Prototype ==== 
 +<code php> 
 +class CallIterator implements Iterator 
 +
 +    public void __construct(array|Traversable $iterator, string $method, scalar|array $method_arguments = array()); 
 +    public void setMethod(string $method); 
 +    public string getMethod(); 
 +    public void setMethodArguments(scalar|array $arguments); 
 +    public array getMethodArguments(); 
 +    [ ... Interface method ... ] 
 +
 +</code> 
 + 
 +==== Simplified example implementation ====
 <code php> <code php>
 class CallIterator implements Iterator class CallIterator implements Iterator
rfc/functional-elements/call-iterator.1205676801.txt.gz · Last modified: 2017/09/22 13:28 (external edit)