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
Operating Room methods.
OR = Operating room OP = Operation, operating
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
$allpreloaded_OR =
[line 68]
Buffer for preloaded OP rooms data
Tags:
- var - record object
- access - private
Type: adodb
Overrides:
[ Top ]
$fld_room = array('nr',
'type_nr',
'date_create',
'date_close',
'is_temp_closed',
'room_nr',
'ward_nr',
'dept_nr',
'nr_of_beds',
'closed_beds',
'info',
'status',
'history',
'modify_id',
'modify_time',
'create_id',
'create_time')
[line 74]
Field names of the care_room table
Tags:
- access - private
Type: array
Overrides:
[ Top ]
$is_allpreloaded = FALSE
[line 62]
Flag for preloaded OR data
Tags:
- access - private
Type: boolean
Overrides:
[ Top ]
$OR_typenr = 2
[line 56]
OP room type number buffer
Tags:
- access - private
Type: int
Overrides:
[ Top ]
$room_nr = 0
[line 50]
Room number buffer
Tags:
- access - private
Type: int
Overrides:
[ Top ]
$tb_dept = 'care_department'
[line 38]
Database table for department data
Tags:
- access - private
Type: string
Overrides:
[ Top ]
$tb_room = 'care_room'
[line 32]
Database table room data
Tags:
- access - private
Type: string
Overrides:
[ Top ]
$tb_ward = 'care_ward'
[line 44]
Database table for ward data
Tags:
- access - private
Type: string
Overrides:
[ Top ]
Class Methods
OPRoom
OPRoom OPRoom(
[int
$rm_nr = 0])
[line 95]
Constructor
Parameters:
- int $rm_nr - OP room number
[ Top ]
AllActiveORInfo
mixed AllActiveORInfo(
[string
$sort = ''])
[line 212]
Returns all active OP room information.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
- string $sort - Field name to sort. default = room_nr
[ Top ]
AllORInfo
mixed AllORInfo(
[string
$sort = ''], [string
$cond = ''])
[line 173]
Returns all OP room information.
For detailed structure of the returned data, see the ORInfo() method.
Tags:
- return - adodb record object or boolean
Parameters:
- string $sort - Field name to sort. Default = room_nr
- string $cond - Addition query constraint string
[ Top ]
CombinedORNrs
string CombinedORNrs(
)
[line 261]
Returns a line of text of all room numbers separated by comma.
Used for validation purposes by searching a users input against this text.
Tags:
- access - public
Parameters:
[ Top ]
LastORNr
integer LastORNr(
)
[line 228]
Returns the last OP room number. Based on the highest OP room number.
Tags:
- access - public
Parameters:
[ Top ]
NewORNr
integer NewORNr(
)
[line 251]
Generates and returns a new OR number. Based on the highest OP room number plus 1.
Tags:
- access - public
Parameters:
[ Top ]
ORInfo
mixed ORInfo(
[int
$nr = 0], [boolean
$rec_key = FALSE])
[line 127]
Returns OP room information.
The returned adodb record object contains rows of arrays. Each array contains data with the following index keys:
- all room index keys as outlined in the $fld_room array
- ward_id = ward id to which the room belongs
- wardname = Ward name
- deptname = Department name
- deptshort = Department's short name
- LD_var = variable's name for foreign language version of department's name
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
- int $nr - OP room number
- boolean $rec_key - Flags if the first parameter is room number or record number. Defaults to FALSE = room number.
[ Top ]
ORNrExists
boolean ORNrExists(
int
$rm_nr)
[line 105]
Checks if an OP room number exists.
Parameters:
- int $rm_nr - OP room number
[ Top ]
ORRecordInfo
mixed ORRecordInfo(
[int
$nr = 0])
[line 158]
Returns OP room information based on the record's primary number key.
For detailed structure of the returned data, see the ORInfo() method.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
- int $nr - Record primary number key
[ Top ]
ORTypeNr
integer ORTypeNr(
)
[line 220]
Returns the type number of OP room.
Tags:
- access - public
Parameters:
[ Top ]
preloadAllORInfo
boolean preloadAllORInfo(
)
[line 198]
Preloads all OP room in the internal buffer. Sorted in descending order by room_nr field name.
Tags:
- access - public
Parameters:
[ Top ]