Source for file PEAR_DATAGRID_DATASOURCE_OCSP_FRMCONTR_LIST.phpclass
Documentation is available at PEAR_DATAGRID_DATASOURCE_OCSP_FRMCONTR_LIST.phpclass
* openCSP class file PEAR_DATAGRID_DATASOURCE_OCSP_FRMCONTR_LIST.phpclass
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: PEAR_DATAGRID_DATASOURCE_OCSP_FRMCONTR_LIST.phpclass,v 1.2 2008/11/28 13:20:40 pitlinz Exp $
// ---------------------------------------------------------
// ---------------------------------------------------------
@require_once("Structures" .
_OCSP_DIRSEP_ .
"DataGrid" .
_OCSP_DIRSEP_ .
"DataSource.php");
throw
new Exception("MISSING PEAR:" .
Structures_DataGrid_DataSource);
* openCSP class PEAR_DATAGRID_DATASOURCE_OCSP_FRMCONTR_LIST
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: PEAR_DATAGRID_DATASOURCE_OCSP_FRMCONTR_LIST.phpclass,v 1.2 2008/11/28 13:20:40 pitlinz Exp $
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
/*** class vars ------------------------------------------------------ */
/*** class methods --------------------------------------------------- */
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
/*** compostion --------------------------------------------------- */
* @var OCSP_FRMCONTR_PEAR_DATAGRID $myListControl;
/*** attributes -------------------------------------------------- */
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
public function factory(&$aControl,$debug=
False)
if ($debug) echoDebugMethod(__FILE__
,"static","PEAR_DATAGRID_DATASOURCE_OCSP_FRMCONTR_LIST::factory()");
$obj_ret->setListControl($aControl);
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// grid datasource methods
// ---------------------------------------------------------------------------
* returns the total number or records found in the container.
return new PEAR_Error("could not count list elements");
* sort the data according to sortSpec and the optional sortDir
* @param string $sortSpec
public function sort($sortSpec, $sortDir =
'ASC')
* returns a 2-dimension array of data, starting from record offset, containing len records
public function fetch($offset =
0, $len =
null)
//if ($debug) echoDebugMethod(__FILE__,get_class($this),"PEAR_DATAGRID_DATASOURCE_OCSP_FRMCONTR_LIST::fetch()");
$bol_forceReload = False;
if (!intval($offset) && ($this->myListControl->getOffset() != $offset))
$this->myListControl->setOffset($offset);
$this->myListControl->setLimit((intval($len) ? intval($len) : PEAR_DATAGRID_MAXLIMIT));
} else if (intval($len) && ($this->myListControl->getLimit() != intval($len))) {
$this->myListControl->setLimit((intval($len) ? intval($len) : PEAR_DATAGRID_MAXLIMIT));
if ($debug) echoDebugLine(__FILE__
,__LINE__
,"<hr /><h2>fetched data:</h2><pre>" .
print_r($arr_ret,True) .
"</pre>");
Documentation generated on Thu, 08 Jan 2009 17:47:51 +0100 by phpDocumentor 1.4.0a2