]> granicus.if.org Git - php/commitdiff
- Match docu with implementation
authorMarcus Boerger <helly@php.net>
Sun, 4 Mar 2007 12:06:55 +0000 (12:06 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 4 Mar 2007 12:06:55 +0000 (12:06 +0000)
- RecursiveFilterIterator::accept() needs to be abstract

ext/spl/internal/parentiterator.inc
ext/spl/spl_iterators.c

index 44d738da25da13bdb1d0482fc713672012222ecb..33b7f9e9183850603cab519486f6807e7b42f656 100755 (executable)
  */
 class ParentIterator extends RecursiveFilterIterator
 {
-       /** @param $it the RecursiveIterator to filter
-        */
-       function __construct(RecursiveIterator $it)
-       {
-               parent::__construct($it);
-       }
-       
        /** @return whetehr the current element has children
         */
        function accept()
        {
                return $this->it->hasChildren();
        }
-
-       /** @return the ParentIterator for the current elements children
-        */
-       function getChildren()
-       {
-               return new ParentIterator($this->it->getChildren());
-       }
 }
 
 ?>
\ No newline at end of file
index 5395304fa1fa6bc63def18aebf6f62f33388e43e..da87619073c883b94c77bd9307849f0348304dfe 100755 (executable)
@@ -1657,7 +1657,6 @@ ZEND_END_ARG_INFO();
 
 static zend_function_entry spl_funcs_RecursiveFilterIterator[] = {
        SPL_ME(RecursiveFilterIterator,  __construct,      arginfo_parent_it___construct, ZEND_ACC_PUBLIC)
-       SPL_MA(ParentIterator,  accept,  RecursiveFilterIterator, hasChildren, NULL, ZEND_ACC_PUBLIC)
        SPL_ME(RecursiveFilterIterator,  hasChildren,      NULL, ZEND_ACC_PUBLIC)
        SPL_ME(RecursiveFilterIterator,  getChildren,      NULL, ZEND_ACC_PUBLIC)
        {NULL, NULL, NULL}