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

Class: Quinoa_Recordlist

Source Location: /Quinoa/Recordlist.php

Class Overview


Quinoa Recordlist class.


Author(s):

Version:

  • 0.0.21 2007-09-23

Copyright:

  • 2007

Variables

Methods



Class Details

[line 51]
Quinoa Recordlist class.

Quinoa Recordlist class. Quinoa_Recordlist represents a set of records of a table of a database. As such it has a array of Quinoa_Records as one of its properties. It keeps also the total of records satisfying the query that originated the record list, ignoring the starting and ending indexes so that a Quinoa_Pager can be constructed for paging the records. It can be used with other Quinoa presentation utilities such as Quinoa_HTML_Tabulardata and Quinoa_HTML_Form to quickly create an application and interact with the data. PHP version 5.x Copyright (c) 2007, Freeconcept, Lda. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Freeconcept, Lda. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.




Tags:

since:  File available since Release 0.0.1
link:  http://www.quinoaframework.org
version:  0.0.21 2007-09-23
copyright:  2007
author:  Marcello Duarte <marcello.duarte@gmail.com>


[ Top ]


Class Variables

$_records =

[line 59]

Array of Quinoa_Records

Array of Quinoa_Records




Tags:

access:  protected

Type:   Quinoa_Record[]


[ Top ]

$_totalOfRecords =

[line 66]

Total of records satisfying the query that originated the record list

Total of records satisfying the query that originated the record list




Tags:

access:  protected

Type:   integer


[ Top ]



Class Methods


constructor __construct [line 73]

Quinoa_Recordlist __construct( Quinoa_Record[] $listOfRecords)

Constructs the Quinoa_Recordlist

Constructs the Quinoa_Recordlist




Tags:

access:  public


Parameters:

Quinoa_Record[]   $listOfRecords  

[ Top ]

method addRecord [line 115]

void addRecord( Quinoa_Record $record)

Adds a record to the records property

Adds a record to the records property




Tags:

access:  public


Parameters:

Quinoa_Record   $record  

[ Top ]

method getLabels [line 83]

array getLabels( )

Returns all the labels of all the attributes of the records

Returns all the labels of all the attributes of the records




Tags:

access:  public


[ Top ]

method getNames [line 99]

array getNames( )

Returns all the names of the attributes of the records

Returns all the names of the attributes of the records




Tags:

access:  public


[ Top ]

method getRecords [line 146]

void getRecords( )



Tags:

access:  public


[ Top ]

method getTotalOfRecords [line 151]

void getTotalOfRecords( )



Tags:

access:  public


[ Top ]

method setRecords [line 157]

void setRecords( mixed $records)



Tags:

access:  public


[ Top ]

method setTotalOfRecords [line 162]

void setTotalOfRecords( mixed $totalOfRecords)



Tags:

access:  public


[ Top ]

method size [line 125]

integer size( )

Gets the size of the records array

Gets the size of the records array




Tags:

access:  public


[ Top ]

method toArray [line 135]

unknown toArray( )

Converts the object to an associative array and returns it

Converts the object to an associative array and returns it




Tags:

access:  public


[ Top ]


Documentation generated on Wed, 03 Oct 2007 14:25:55 +0100 by phpDocumentor 1.3.0RC3