Inherited Variables
Inherited Methods
Class: Core
- Core::coreFieldNames()
- Returns the core field names of the core table in an array.
- Core::deleteDBCache()
- Deletes data from the database cache based on the id key.
- Core::FilesListArray()
- Returns a list of filename within a path in array.
- Core::getAllDataArray()
- Returns all records with the all items from the table.
- Core::getAllDataObject()
- Returns all records with all items from the table.
- Core::getAllItemsArray()
- Similar to getAllItemsObject() method but returns the records in an associative array.
- Core::getAllItemsObject()
- Returns all records with the needed items from the table.
- Core::getDBCache()
- Gets temporary data from the database cache.
- Core::getErrorMsg()
- Feturns the value of error_msg, the internal error message.
- Core::getLastQuery()
- Returns the the last sql query string
- Core::getResult()
- Feturns the value of result
- Core::insertDataFromArray()
- Inserts data from an array (passed by reference) into a table.
- Core::insertDataFromInternalArray()
- Inserts data from the internal array previously filled with data by the setDataArray() method.
- Core::isPreLoaded()
- Returns the value of is_preloaded that is set by methods that preload large number of data.
- Core::LastRecordCount()
- Returns the value of rec_count
- Core::saveDBCache()
- Saves temporary data to a cache in database.
- Core::setDataArray()
- Points the core data array to the external array that holds the data to be stored.
- Core::setRefArray()
- Points the reference variable $ref_array to the field names' array.
- Core::setSQL()
- Sets the internal sql query variable to the sql query.
- Core::setTable()
- Sets the coretable variable to the name of the database table.
- Core::setWhereCondition()
- Sets the "where" condition in an update query used with the updateDataFromInternalArray() method.
- Core::Transact()
- Transaction routine, ADODB transaction. It internally uses the ADODB transaction routine.
- Core::updateDataFromArray()
- Updates a record with the data from an array (passed by reference) based on the primary key.
- Core::updateDataFromInternalArray()
- Updates a table using data from an internal array previously filled with data by the setDataArray() method.
- Core::_prepSaveArray()
- Filters the data array intended for saving, removing the key-value pairs that do not correspond to the table's field names.
- Core::_RecordExists()
- Checks if a certain database record exists based onthe supplied query condition.
Class Details
Diagnostics.
Note this class should be instantiated only after a "$db" adodb connector object has been established by an adodb instance.
Tags:
- copyright - 2002,2003,2004 Elpidio Latorilla
- version - beta 1.0.08
- author - Elpidio Latorilla
[ Top ]
Class Variables
$chemlabor = array('batch_nr',
'encounter_nr',
'room_nr',
'dept_nr',
'parameters',
'doctor_sign',
'highrisk',
'notes',
'send_date',
'sample_time',
'sample_weekday',
'status',
'history',
'modify_id',
'modify_time',
'create_id',
'create_time')
[line 57]
Field names of care_test_request_chemlabor
Type: array
Overrides:
[ Top ]
$result =
[line 52]
Holder for sql query results.
Tags:
- var - record object
Type: object adodb
Overrides: Array
[ Top ]
$tb_req_bac = 'care_test_request_baclabor'
[line 27]
Table name for bacteriology lab test request
Type: string
Overrides:
[ Top ]
$tb_req_blood = 'care_test_request_blood'
[line 32]
Table name for blood bank request
Type: string
Overrides:
[ Top ]
$tb_req_chem = 'care_test_request_chemlabor'
[line 22]
Table name for chemical lab test request
Type: string
Overrides:
[ Top ]
$tb_req_generic = 'care_test_request_generic'
[line 37]
Table name for generic request form
Type: string
Overrides:
[ Top ]
$tb_req_patho = 'care_test_request_patho'
[line 42]
Table name for pathology lab test request
Type: string
Overrides:
[ Top ]
$tb_req_radio = 'care_test_request_radio'
[line 47]
Table name for radiology test request
Type: string
Overrides:
[ Top ]
Class Methods
setWhereCond
void setWhereCond(
string
$cond)
[line 98]
Sets the "where" variable of the core class.
The passed condition will be used in the WHERE part of the sql query.
Tags:
- access - public
Parameters:
- string $cond - The string to append to "care_test_request_" to create a complete table name.
[ Top ]
useChemLabRequestTable
void useChemLabRequestTable(
)
[line 78]
Sets the core to point to the care_test_request_chemlabor table
Tags:
- access - public
Parameters:
[ Top ]
useRequestTable
void useRequestTable(
string
$index)
[line 88]
Sets the core to point to the a care_test_request_????? table.
The ????? is replaced with string passed as parameter.
Tags:
- access - public
Parameters:
- string $index - The string to append to "care_test_request_" to create a complete table name.
[ Top ]