Class FindIterator

Description

Iterator for traversing statements matching a searchpattern.

FindIterators are returned by model->findAsIterator() Using a find iterator is significantly faster than using model->find() which returns a new result model.



History:

  • 08-05-2004 : First version of this class.

Located in /util/FindIterator.php (line 25)

Object
   |
   --FindIterator
Variable Summary
mixed $object
mixed $predicate
Method Summary
FindIterator FindIterator (object MemModel &$model, object Subject $sub, object Predicate $pred, object Object $obj)
statement current ()
boolean hasNext ()
statement next ()
Variables
mixed $object (line 55)
mixed $predicate (line 54)
Methods
Constructor FindIterator (line 67)

Constructor

  • access: public
FindIterator FindIterator (object MemModel &$model, object Subject $sub, object Predicate $pred, object Object $obj)
  • object MemModel &$model
  • object Subject $sub
  • object Predicate $pred
  • object Object $obj
current (line 113)

Returns the current matching statement.

  • return: or NULL if there is no current matching statement.
  • access: public
statement current ()
hasNext (line 81)

Returns TRUE if there are more matching statements.

  • access: public
boolean hasNext ()
next (line 95)

Returns the next matching statement.

  • return: or NULL if there is no next matching statement.
  • access: public
statement next ()

Inherited Methods

Inherited From Object

Object::toString()

Documentation generated on Fri, 17 Dec 2004 16:14:49 +0100 by phpDocumentor 1.3.0RC3