Class IterFind

Description

Implementation of a find-iterator which delivers statements or quads.

This Iterator should be used in a for-loop like: for($iterator = $memmodel->iterFind(null,null,null,null); $iterator->valid(); $iterator->next()) { $statement=$iterator->current(); };

  • author: Daniel Westphal (http://www.d-westphal.de)
  • version: $Id: IterFind.html 443 2007-06-01 16:25:38Z cax $
  • access: public

Located in /util/IterFind.php (line 24)


	
			
Method Summary
IterFind IterFind ($graph $graph, $subject $subject, $predicate $predicate, $object $object, [$returnAsQuads $returnAsQuads = false])
mixed current ()
integer key ()
void next ()
void rewind ()
boolean valid ()
Methods
Constructor IterFind (line 100)

Constructor.

$subject, $predicate, and $object are used like find(). $graph has to be a reference to the graph to search in.

  • access: public
IterFind IterFind ($graph $graph, $subject $subject, $predicate $predicate, $object $object, [$returnAsQuads $returnAsQuads = false])
  • $graph $graph: Resource
  • $subject $subject: Resource
  • $predicate $predicate: Resource
  • $object $object: Resource
  • $returnAsQuads $returnAsQuads: boolean
current (line 154)

Returns the current item

  • access: public
mixed current ()
key (line 169)

Returns the key of the current item

  • access: public
integer key ()
next (line 142)

Moves Iterator to the next item in the list

  • access: public
void next ()
rewind (line 120)

Resets iterator list to start

  • access: public
void rewind ()
valid (line 132)

Says if there are additional items left in the list

  • access: public
boolean valid ()

Documentation generated on Fri, 1 Jun 2007 16:49:38 +0200 by phpDocumentor 1.3.2