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.

  • access: public
  • author: Tobias Gauß <tobias.gauss@web.de>
  • version: $Id: FindIterator.html,v 1.15 2006/06/26 12:34:22 tgauss Exp $

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

Object
   |
   --FindIterator
Variable Summary
object MemModel $model
mixed $object
integer $position
mixed $predicate
Method Summary
FindIterator FindIterator (mixed &$model, mixed $sub, mixed $pred, mixed $obj)
statement current ()
boolean hasNext ()
statement next ()
Variables
object MemModel $model (line 28)

Reference to the MemModel

  • access: private
mixed $object (line 51)
integer $position (line 39)

Current position FindIterator does not use the build in PHP array iterator, so you can use serveral iterators on a single MemModel.

  • access: private
mixed $predicate (line 50)
Object $subject (line 49)

Searchpattern

  • var: Subject,Predicate,Object
  • access: private
Methods
Constructor FindIterator (line 63)

Constructor

  • access: public
FindIterator FindIterator (mixed &$model, mixed $sub, mixed $pred, mixed $obj)
current (line 109)

Returns the current matching statement.

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

Returns TRUE if there are more matching statements.

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

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 Mon, 26 Jun 2006 14:25:26 +0200 by phpDocumentor 1.3.0RC6