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.

  • author: Tobias Gauß <tobias.gauss@web.de>
  • version: $Id: FindIterator.html 443 2007-06-01 16:25:38Z cax $
  • access: public

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

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 51)
mixed $predicate (line 50)
Methods
Constructor FindIterator (line 63)

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 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 Fri, 1 Jun 2007 16:49:08 +0200 by phpDocumentor 1.3.2