SourceForge.net LogoPHPGallue
[ class tree: libgallue ] [ index: libgallue ] [ all elements ]

Class: GALCategoryIterator

Source Location: /libgallue/category.inc.php

Class Overview

GALResult
   |
   --GALTableIterator
      |
      --GALCategoryIterator

Access to a set of GALCategory objects.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: GALTableIterator

GALTableIterator::__construct()
Initializes this object.
GALTableIterator::buildRow()
Implements the GALRowFactory interface.
GALTableIterator::countFields()
Returns the number of fields contained in a result.
GALTableIterator::data_seek()
Sets the internal pointer to the specified row.
GALTableIterator::fetch()
Fetches the current row from the database.
GALTableIterator::getFields()
Returns all fields contained in this result.
GALTableIterator::getFlags()
Gets the flags of the given field.
GALTableIterator::getLength()
Gets the length of the given field.
GALTableIterator::getParent()
Returns the parent of this result.
GALTableIterator::getRowFactory()
Returns the factory to construct rows.
GALTableIterator::getTable()
Gets the name of the table the given field is contained in.
GALTableIterator::getType()
Gets the type of the given field.
GALTableIterator::setRowFactory()
Changing the row factory is not possible.
GALTableIterator::verticalFetch()
Returns the value of the specified field in all rows of this iterator.
GALTableIterator::__destruct()
Overwrite inherited destructor.

Class: GALResult

GALResult::__construct()
Initializes a GALResult.
GALResult::buildRow()
Implements the GALRowFactory interface.
GALResult::count()
Returns the number of rows in this result.
GALResult::countFields()
Returns the number of fields contained in a result.
GALResult::data_seek()
Sets the internal pointer to the specified row.
GALResult::fetch()
Fetches a row from the MySQL query result.
GALResult::filter()
Filters the rows of this result with a callback function.
GALResult::getFields()
Returns all fields contained in a result.
GALResult::getFlags()
Gets the flags of the given field.
GALResult::getLength()
Gets the length of the given field.
GALResult::getParent()
Returns a reference to this object.
GALResult::getRowFactory()
Returns the factory to construct rows.
GALResult::getTable()
Gets the name of the table the given field is contained in.
GALResult::getType()
Gets the type of the given field.
GALResult::isField()
Checks if the given field is contained in a result.
GALResult::iterator()
Creates a new iterator on the data of this result.
GALResult::position()
Returns the index of the current row.
GALResult::rewind()
Sets the internal pointer to zero.
GALResult::row()
Fetches the row with the specified index (starting from 0).
GALResult::setRowFactory()
Sets the factory to construct rows.
GALResult::verticalFetch()
Returns the value of the specified field in all rows of this iterator.
GALResult::__destruct()
Free memory associated with this query result.

Class Details

[line 163]
Access to a set of GALCategory objects.

Access the rows of a database result ressource as GALCategory objects. This class has got the same functionality as GALTableIterator.




Tags:



[ Top ]


Class Variables

$glb =

[line 168]

Link to GALGallery object.



Tags:

access:  protected

Type:   GALGallery


[ Top ]



Class Methods


constructor __construct [line 178]

GALCategoryIterator __construct( GALGallery $glb, $table, resource $handle, [ $rowFactory = false])

Initialize the $glb variable, then call parent constructor.

This constructor shouldn't be called by a library user, it is called inside GALCategories::rawLoad().




Tags:



Overrides GALTableIterator::__construct() (Initializes this object.)

Parameters:

GALGallery   $glb   Link to GALGallery object, used to initialize the $glb property.
GALTable   $table   Passed to parent constructor.
resource   $handle   The database result mysql resource passed to the parent constructor.
   $rowFactory  

[ Top ]

method buildRow [line 192]

GALCategory buildRow( $source, array &$data)

Constructs the items of this iterator.

This method overwrites GALTableIterator::buildRow() so that it builds GALCategory objects instead of GALTableRow.




Tags:



Overrides GALTableIterator::buildRow() (Implements the GALRowFactory interface.)

Parameters:

GALResult   $source  
array   &$data  

[ Top ]


Documentation generated on Wed, 16 Aug 2006 15:35:30 +0200 by phpDocumentor 1.3.0RC6