Packageindex Classtrees Modulegroups Elementlist Report XML Files

object_cache

object_cache

private class object_cache

 

Public Method Summary

object object_cache &singleton()
Returns a reference to an already-instantiated object_cache class.
void object_cache()
Constructor
array getDatatype( $dt)
Gets information about a given datatype
array getTableColumns(string $table)
Get column names for a table
void saveTableColumns(string $table, array $columns)
Saves the columns of a table, passed as an array of strings
array getTfIdByIdentifiers(string $datatype_list, string $fieldname)
Get Typesfield IDs (and the count of rows) for a set of
void saveTfIdByIdentifiers(string $datatype_list, string $fieldname, int $typesfield_id, int $num_rows)
Sets Typesfield IDs (and the count of rows) for a set of
array getTfIdByDbFields(string $datatype_list, string $dbfield)
Get Typesfield IDs (and the count of rows) for a set of
void saveTfIdByDbFields(string $datatype_list, string $dbfield, int $typesfield_id, int $num_rows)
Sets Typesfield IDs (and the count of rows) for a set of
array getColumnIdentifiers(string $datatype_list)
Get dbfields fname and typesfield identifier for a set of
void saveColumnIdentifiers(string $datatype_list, array $column_identifiers)
Set dbfields fname and typesfield identifier for a set of
array getDbTables()
Get the tables in the database from the cache
void saveDbTables(array $db_tables)
Saves the list of tables in the database

Private Method Summary

void saveDatatype( $dt, $fields)
Warning: documentation is missing.
void &getTypesFields( $tfid)
Warning: documentation is missing.
void saveTypesFields( $tfid, $fields)
Warning: documentation is missing.
void getDbField( $dbfid)
Warning: documentation is missing.
void saveDbField( $dbfid, $fields)
Warning: documentation is missing.
void getTypeFieldId( $datatype, $identifier)
Warning: documentation is missing.
void saveTypeFieldId( $tfid, $datatype, $identifier)
Warning: documentation is missing.

Private Field Summary

array $datatypes

array $typesFields

array $typeFieldId

array $dbFields

array $tableColumns

array $tfIdByIdentifiers

array $tfIdbyDbFields

array $columnIdentifiers

array $dbTables

Public Method Details

&singleton

public object object_cache &singleton()

 

Returns object object_cache


object_cache

public void object_cache()

 

Returns void


getDatatype

public array getDatatype( $dt)

 

Parameter
$dt
Warning: documentation is missing.
Returns array

Reference to the info for a given datatype


getTableColumns

public array getTableColumns(string $table)

 

Parameter
string $table
Name of the desired table
Returns array

Reference to an array of column names


saveTableColumns

public void saveTableColumns(string $table, array $columns)

 

Parameter
string $table
The name of the table
array $columns
The names of the columns
Returns void


getTfIdByIdentifiers

public array getTfIdByIdentifiers(string $datatype_list, string $fieldname)

  datatypes, searching by typesfield identifier. Used by pxdb_data::lookup_tfid()

Parameter
string $datatype_list
The datatype list in string form
string $fieldname
The name of the identifier searched for
Returns array

Array of column names


saveTfIdByIdentifiers

public void saveTfIdByIdentifiers(string $datatype_list, string $fieldname, int $typesfield_id, int $num_rows)

  datatypes, searching by typesfield identifier. Used by pxdb_data::lookup_tfid()

Parameter
string $datatype_list
The datatype list in string form
string $fieldname
The identifier searched for
int $typesfield_id
The id of the typesfield row found
int $num_rows
The number of rows returned by the search
Returns void


getTfIdByDbFields

public array getTfIdByDbFields(string $datatype_list, string $dbfield)

  datatypes, searching by dbfield name. Used by pxdb_data::lookup_tfid()

Parameter
string $datatype_list
The datatype list in string form
string $dbfield
The name of the identifier searched for
Returns array

Reference to an array of column names


saveTfIdByDbFields

public void saveTfIdByDbFields(string $datatype_list, string $dbfield, int $typesfield_id, int $num_rows)

  datatypes, searching by dbfield name. Used by pxdb_data::lookup_tfid()

Parameter
string $datatype_list
The datatype list in string form
string $dbfield
The dbfield searched for
int $typesfield_id
The id of the typesfield row found
int $num_rows
The number of rows returned by the search
Returns void


getColumnIdentifiers

public array getColumnIdentifiers(string $datatype_list)

  datatypes. Used by pxdb_data::get_column_identifiers()

Parameter
string $datatype_list
The datatype list in string form
Returns array

Array of column names


saveColumnIdentifiers

public void saveColumnIdentifiers(string $datatype_list, array $column_identifiers)

  datatypes. Used by pxdb_data::get_column_identifiers()

Parameter
string $datatype_list
The datatype list in string form
array $column_identifiers
hash of fnames and identifiers
Returns void


getDbTables

public array getDbTables()

 

Returns array

Array of tables, false if nothing there


saveDbTables

public void saveDbTables(array $db_tables)

 

Parameter
array $db_tables
Array of names of tables in the database
Returns void


Private Method Details

saveDatatype

private void saveDatatype( $dt, $fields)

 

Warning: documentation is missing.

Parameter
$dt
Warning: documentation is missing.
$fields
Warning: documentation is missing.
Returns void


&getTypesFields

private void &getTypesFields( $tfid)

 

Warning: documentation is missing.

Parameter
$tfid
Warning: documentation is missing.
Returns void


saveTypesFields

private void saveTypesFields( $tfid, $fields)

 

Warning: documentation is missing.

Parameter
$tfid
Warning: documentation is missing.
$fields
Warning: documentation is missing.
Returns void


getDbField

private void getDbField( $dbfid)

 

Warning: documentation is missing.

Parameter
$dbfid
Warning: documentation is missing.
Returns void


saveDbField

private void saveDbField( $dbfid, $fields)

 

Warning: documentation is missing.

Parameter
$dbfid
Warning: documentation is missing.
$fields
Warning: documentation is missing.
Returns void


getTypeFieldId

private void getTypeFieldId( $datatype, $identifier)

 

Warning: documentation is missing.

Parameter
$datatype
Warning: documentation is missing.
$identifier
Warning: documentation is missing.
Returns void


saveTypeFieldId

private void saveTypeFieldId( $tfid, $datatype, $identifier)

 

Warning: documentation is missing.

Parameter
$tfid
Warning: documentation is missing.
$datatype
Warning: documentation is missing.
$identifier
Warning: documentation is missing.
Returns void


Private Field Details

$datatypes

private array $datatypes

>>array()<<


$typesFields

private array $typesFields

>>array()<<


$typeFieldId

private array $typeFieldId

>>array()<<


$dbFields

private array $dbFields

>>array()<<


$tableColumns

private array $tableColumns

>><<


$tfIdByIdentifiers

private array $tfIdByIdentifiers

>><<


$tfIdbyDbFields

private array $tfIdbyDbFields

>><<


$columnIdentifiers

private array $columnIdentifiers

>><<


$dbTables

private array $dbTables

>><<



Packageindex Classtrees Modulegroups Elementlist Report XML Files
Generated on Fri, 28 Apr 2006 19:07:22 -0400 by PHPDoc v1.5 www.phpdoc.de