Source for file _dataobjectlist.class.php
Documentation is available at _dataobjectlist.class.php
* This file implements the abstract DataObjectList base class.
* This file is part of Quam Plures - {@link http://quamplures.net/}
* See also {@link https://launchpad.net/quam-plures}.
* @copyright (c) 2009 - 2011 by the Quam Plures developers - {@link http://quamplures.net/}
* @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}
* {@internal License choice
* - If you have received this file as part of a package, please find the license.txt file in
* the same folder or the closest folder above for complete license terms.
* - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)
* then you must choose one of the following licenses before using the file:
* - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php
* - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php
* {@internal Open Source relicensing agreement:
* {@internal Below is a list of authors who have contributed to design/coding of this file: }}
* @author fplanque: Francois PLANQUE
if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
load_class('_core/ui/results/_results.class.php');
* Data Object List Base Class
* This is typically an abstract class, useful only when derived.
* Holds DataObjects in an array and allows walking through...
* The following should probably be obsoleted by Results::Cache
* Class name of objects handled in this list
* If provided, executes SQL query via parent Results object
* @param string Name of table in database
* @param string Prefix of fields in the table
* @param string Name of the ID field (including prefix)
* @param string Name of Class for objects within this list
* @param string SQL query
* @param integer number of lines displayed on one screen
* @param string prefix to differentiate page/order params when multiple Results appear one same page
* @param string default ordering of columns (special syntax)
function DataObjectList( $tablename, $prefix = '', $dbIDname = 'ID', $objType = 'Item', $sql = NULL,
$limit = 20, $param_prefix = '', $default_order = NULL )
{ // We have an SQL query to execute:
parent::Results( $sql, $param_prefix, $default_order, $limit );
{ // TODO: do we want to autogenerate a query here???
parent::Results( $sql, $param_prefix, $default_order, $limit );
* Get next object in list
{ // No more comment in list
|