Support custom iterators for Result

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Major - P3
    • 0.4.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      QueryResult and CommandResult custom iterators not yet implemented. setIteratorClass(), setIteratorInitCallback(), and getIterator() should throw a "not implemented" exception for now.

      Currently, these result objects use phongo_result_get_iterator() to return a zend_object_iterator, which is not a real object; however, it does work with language constructs (e.g. foreach)) and methods such as iterator_to_array().

      Once an actual iterator class is supported (including a default implementation), getIterator() should return an actual PHP object instead of a zend_object_iterator.

            Assignee:
            Unassigned
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: