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(); };

  • access: public
  • author: Daniel Westphal (http://www.d-westphal.de)
  • version: $Id: IterFind.html,v 1.10 2006/06/26 12:34:22 tgauss Exp $

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


	
			
Variable Summary
obejct $current
string $findGraph
string $findObject
string $findSubject
integer $key
boolean $returnAsQuads
boolean $valid
Method Summary
IterFind IterFind (mixed $graph, mixed $subject, mixed $predicate, mixed $object, [mixed $returnAsQuads = false])
mixed current ()
integer key ()
void next ()
void rewind ()
boolean valid ()
Variables
obejct $current (line 53)

The current NamedGraph

  • var: NamedGraph
  • access: private
string $findGraph (line 60)

The graph to look in.

  • access: private
string $findObject (line 81)

The object Resource to search for

  • access: private
string $findPredicate (line 74)

The predicate Resource to search for

  • access: private
string $findSubject (line 67)

The subject Resource to search for

  • access: private
integer $key (line 32)

The current position

  • access: private
boolean $returnAsQuads (line 39)

boolean value, if the results should be returned as Quads

  • access: private
boolean $valid (line 46)

If the current resource is valid

  • access: private
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 (mixed $graph, mixed $subject, mixed $predicate, mixed $object, [mixed $returnAsQuads = false])
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 Mon, 26 Jun 2006 14:25:34 +0200 by phpDocumentor 1.3.0RC6