Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
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 (   $dbresult = NULL)

Constructor

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

Parameters
objectDB_Sql $dbresult

Here is the call graph for this function:

getDistinctRows (   $fieldname)

Here is the call graph for this function:

Here is the caller graph for this function:

getField (   $field = 0)

Here is the call graph for this function:

getFieldList ( )

Here is the call graph for this function:

Here is the caller graph for this function:

getGroupedResult (   $group_by_field,
  $fields_to_group = null 
)

Here is the call graph for this function:

getRow (   $row = false)

Here is the call graph for this function:

getRows (   $fieldname = 0)

Here is the call graph for this function:

Here is the caller graph for this function:

getSnapshot ( )

Here is the call graph for this function:

Here is the caller graph for this function:

halt (   $msg)

print error message and exit script

private

Parameters
string$msgthe message to print

Here is the caller graph for this function:

isDbResult ( )

Here is the call graph for this function:

Here is the caller graph for this function:

isField (   $name)

Here is the caller graph for this function:

mergeSnapshot (   $m_snap,
  $key_field = false,
  $mode = "ADD" 
)

Here is the call graph for this function:

nextRow ( )

Here is the call graph for this function:

resetPos ( )

Here is the caller graph for this function:

searchFields (   $fieldname,
  $searchstr 
)

Here is the call graph for this function:

sortRows (   $fieldname = 0,
  $order = "ASC",
  $stype = false 
)

Here is the call graph for this function:

Field Documentation

string $DbClass = "DB_Sql"

the used db abstraction class

private

object DB_Sql $dbResult = NULL

the used db result set

private

boolean $debug = false

turn on/off debugging

public

array $metaData = array()

array to store metadata oh the result set

private

integer $numFields = 0

the number of fields in the result set

public

integer $numRows = 0

the number of rows in the result set

public

mixed $pos = false

the internal row pointer

private

array $result = array()

array to store the result set

private


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