Source for file TempTable.php
Documentation is available at TempTable.php
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2002 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Jacob Lee <jacobswell4u@yahoo.com> |
// +----------------------------------------------------------------------+
// $Id: TempTable.php,v 1.3 2005/04/06 05:10:57 busterb Exp $
* Class for DBA Temporary Table Object
* Class name : DBA_TempTable
// {{{ instance variables
* Contents of the temporary table
// {{{ function DBA_TempTable($rows=null, $alias=null)
function DBA_TempTable ($rows=null , $alias=null )
$this->setRows ($rows, $alias);
// {{{ function isTempTable($tTable)
function isTempTable ($tTable)
// {{{ function setRows($rows, $alias=null)
function setRows (&$rows, $alias=null )
foreach ($rows as $row) {
foreach($row as $field=> $data) {
if ($field == '_rowid' || $field == '_timestamp')
$v_row[$alias. '.'. $field] = $data;
else $v_row[$field] = $data;
// {{{ function blankRow()
foreach ($curRow as $field=> $data) {
if ($field{0 } == '_') // ignore system rows
// {{{ function firstRow()
$result = reset($this->_rows);
if ($result === false ) return $result;
return key($this->_rows);
// {{{ function nextRow()
$result = next($this->_rows);
if ($result === false ) return $result;
return key($this->_rows);
// {{{ function getRow($key)
foreach ($this->_rows[$key] as $field=> $data) {
if ($field{0 } == '_') // ignore system rows
// {{{ function &getRows()
Documentation generated on Mon, 11 Mar 2019 14:59:55 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|