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 |
|