RDF
[ class tree: RDF ] [ index: RDF ] [ all elements ]

Class: RDF_FindIterator

Source Location: /RDF-0.2.0/RDF/FindIterator.php

Class Overview

RDF_Object
   |
   --RDF_FindIterator

Iterator for traversing statements matching a searchpattern.


Author(s):

Version:

  • V0.81

Variables

Methods


Inherited Variables

Inherited Methods

Class: RDF_Object

RDF_Object::factory()
RDF_Object::toString()
Serializes a object into a string

Class Details

[line 20]
Iterator for traversing statements matching a searchpattern.

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



[ Top ]


Class Variables

$model =

[line 27]

Reference to the Model_Memory
  • Access: protected

Type:   object Model_Memory


[ Top ]

$object =

[line 46]


Type:   mixed


[ Top ]

$position =

[line 36]

Current position RDF_FindIterator does not use the build in PHP array iterator, so you can use serveral iterators on a single Model_Memory.
  • Access: protected

Type:   integer


[ Top ]

$predicate =

[line 45]


Type:   mixed


[ Top ]

$subject =

[line 44]

Searchpattern
  • Var: Subject, Predicate, Object
  • Access: protected

Type:   Object


[ Top ]



Method Detail

RDF_FindIterator (Constructor)   [line 57]

RDF_FindIterator RDF_FindIterator( object Model_Memory &$model, object Subject &$sub, object Predicate &$pred, object Object &$obj)

Constructor
  • Access: public

Parameters:

object Model_Memory   &$model     
object Subject   &$sub     
object Predicate   &$pred     
object Object   &$obj     

[ Top ]

current   [line 101]

statement current( )

Returns the current matching statement.
  • Return: or NULL if there is no current matching statement.
  • Access: public

[ Top ]

hasNext   [line 71]

boolean hasNext( )

Returns true if there are more matching statements.
  • Access: public

[ Top ]

next   [line 85]

tatement next( )

Returns the next matching statement.
  • Return: or NULL if there is no next matching statement.
  • Access: public

[ Top ]


Documentation generated on Tue, 05 Oct 2010 15:30:06 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.