Labs - norbertsackey/ash-sweb-2016-group14 GitHub Wiki

Labs Class Reference

Inheritance diagram for Labs:

Public Member Functions

search_lab ($lab_name, $lab-id, $lab_location, $equip_id)

add_lab ($lab_name, $lab_id, $lab_location, $capcaity, $equip_id, $supplierID)

delete_lab ($lab_id)

edit_lab ($lab_name, $lab_id, $lab_location, $capcaity)

Member Function Documentation

add_lab ( $lab_name, $lab_id, $lab_location, $capcaity, $equip_id, $supplierID )

boolean add_lab($lab_name, $lab_id,$lab_location,$capcaity,$equip_id,$supplierID) Allows the Administrator to add new labs given their names, ids, location and capacity

Parameters

String $lab_name,// The name of a lab integer $lab_id,// The assigned id of a lab varchar $lab_location,// The assigned location of a lab integer $capacity,// The equipment capcity of a lab integer $equip_id,// The assigned id for an equipment integer $supplierID,// The assigned id for a supplier $str_query// this ia a variable that holds the query. It searches through the database to get the lab information if any

Returns

$this->query()//this returns the value of the query if there is any in the database.

delete_lab ( $lab_id )

boolean delete_lab($lab_id)allows the Administrator to remove labs given their id

Parameters

integer $id,// The assigned id of a lab $str_query// this is a variable that holds the query. It searches through the database to get the lab information if any

Returns

$this->query()//this returns the value of the query if there is any in the database.

edit_lab ( $lab_name, $lab_id, $lab_location, $capcaity )

boolean edit_lab($lab_name, $lab_id,$lab_location,$capcaity) Allows the Administrator to modify labs given their names, id, physical location and capacity

Parameters

String $lab_name,// The name of a lab integer $lab_id,// The assigned id of a lab varchar $lab_location,// The assigned location of a lab integer $capacity,// The equipment capcity of a lab $str_query// this ia a variable that holds the query. It searches through the database to get the llab information if any

Returns

$this->query()//this returns the value of the query if there is any in the database.

search_lab ( $lab_name, $lab-, $lab_location, $equip_id )

boolean search_lab($lab_name,$lab_id,$lab_location,$equip_id) Allows users to search for labs by their names, id and physical locations

Parameters

String $lab_name,// The name of a lab integer $lab_id,// The assigned id of a lab varchar $location,// The assigned location of a lab $str_query// this ia a variable that holds the query. It searches through the database to get the lab information if any

Returns

$this->fetch()//this returns the value of the query if there is any in the database.

The documentation for this class was generated from the following file:•C:/Users/Jacque/Downloads/se/labs.php