BmfoInstallationRecord Class Reference

Inheritance diagram for BmfoInstallationRecord:

Inheritance graph
[legend]
Collaboration diagram for BmfoInstallationRecord:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 insertFromSession ($intSubtype, $intOperationsRecordOID, $strPrefix="")
 insert ($intSubtype, $intOperationsRecordOID, $strEquipmentID, $strRecordDate, $strFacilityID)
 delete ($intID)

Detailed Description

Functionality related to InstallationRecords.


Member Function Documentation

BmfoInstallationRecord::delete intID  ) 
 

Delete an InstallationRecord.

Parameters:
$intID is the ID of the record.
Returns:
True on success and false on failure.
Todo:
: Check result.

BmfoInstallationRecord::insert intSubtype,
intOperationsRecordOID,
strEquipmentID,
strRecordDate,
strFacilityID
 

Insert a new InstallationRecord to the database.

Parameters:
$intSubtype is the Subtype of the record.
$intOperationsRecordOID is the ID of the related OperationsRecord
$strEquipmentID is the ID of the installed Equipment.
$strRecordDate is the installation date and time.
$strFacilityID is the ID of the facility where the equipment is installed.
Returns:
The InstallationRecordID on success or NULL on failure.
Todo:
check meter availability (is meter installed somewhere else?)

The InstallationRecord should be unique.

Todo:
check RecordDate

Insert new InstallationRecord.

BmfoInstallationRecord::insertFromSession intSubtype,
intOperationsRecordOID,
strPrefix = ""
 

Insert a new InstallationRecord to the database. Retrieve values from $_SESSION

Parameters:
$intSubtype is the Subtype of the record.
$intOperationsRecordOID is the ID of the related OperationsRecord.
$strPrefix is an optional string that will be prepended to form element names.
Returns:
The InstallationRecordID on success or NULL on failure.


The documentation for this class was generated from the following file:
Generated on Tue Sep 26 22:29:57 2006 for BMFO by  doxygen 1.4.6-NO