Stud.IP  jlu_3.3 Revision
DbSnapshot Class Reference
Collaboration diagram for DbSnapshot:
Collaboration graph

Public Member Functions

 DbSnapshot ($dbresult=NULL)
 
 isDbResult ()
 
 getSnapshot ()
 
 nextRow ()
 
 resetPos ()
 
 isField ($name)
 
 getRow ($row=false)
 
 getFieldList ()
 
 getField ($field=0)
 
 getRows ($fieldname=0)
 
 getDistinctRows ($fieldname)
 
 sortRows ($fieldname=0, $order="ASC", $stype=false)
 
 searchFields ($fieldname, $searchstr)
 
 getGroupedResult ($group_by_field, $fields_to_group=null)
 
 mergeSnapshot ($m_snap, $key_field=false, $mode="ADD")
 
 halt ($msg)
 

Data Fields

 $DbClass = "DB_Sql"
 
 $dbResult = NULL
 
 $result = array()
 
 $metaData = array()
 
 $numFields = 0
 
 $numRows = 0
 
 $pos = false
 
 $debug = false
 

Member Function Documentation

◆ DbSnapshot()

DbSnapshot (   $dbresult = NULL)

Constructor

Pass instance of DbClass or nothing to specify result set later @access public

Parameters
objectDB_Sql $dbresult
Here is the call graph for this function:

◆ getDistinctRows()

getDistinctRows (   $fieldname)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getField()

getField (   $field = 0)
Here is the call graph for this function:

◆ getFieldList()

getFieldList ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGroupedResult()

getGroupedResult (   $group_by_field,
  $fields_to_group = null 
)
Here is the call graph for this function:

◆ getRow()

getRow (   $row = false)
Here is the call graph for this function:

◆ getRows()

getRows (   $fieldname = 0)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSnapshot()

getSnapshot ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ halt()

halt (   $msg)

print error message and exit script

@access private

Parameters
string$msgthe message to print
Here is the caller graph for this function:

◆ isDbResult()

isDbResult ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isField()

isField (   $name)
Here is the caller graph for this function:

◆ mergeSnapshot()

mergeSnapshot (   $m_snap,
  $key_field = false,
  $mode = "ADD" 
)
Here is the call graph for this function:

◆ nextRow()

nextRow ( )
Here is the call graph for this function:

◆ resetPos()

resetPos ( )
Here is the caller graph for this function:

◆ searchFields()

searchFields (   $fieldname,
  $searchstr 
)
Here is the call graph for this function:

◆ sortRows()

sortRows (   $fieldname = 0,
  $order = "ASC",
  $stype = false 
)
Here is the call graph for this function:

Field Documentation

◆ $DbClass

string $DbClass = "DB_Sql"

the used db abstraction class

@access private

◆ $dbResult

object DB_Sql $dbResult = NULL

the used db result set

@access private

◆ $debug

boolean $debug = false

turn on/off debugging

@access public

◆ $metaData

array $metaData = array()

array to store metadata oh the result set

@access private

◆ $numFields

integer $numFields = 0

the number of fields in the result set

@access public

◆ $numRows

integer $numRows = 0

the number of rows in the result set

@access public

◆ $pos

mixed $pos = false

the internal row pointer

@access private

◆ $result

array $result = array()

array to store the result set

@access private


The documentation for this class was generated from the following file: