-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReceivingController.php
More file actions
42 lines (36 loc) · 944 Bytes
/
ReceivingController.php
File metadata and controls
42 lines (36 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/* Controller class for Receiving Use Case
* @author Undergraduate Group One
*/
include 'PartStore.php';
include 'LegacyProductDBInterface.php';
include 'ReceivingInterface.php';
class ReceivingController
{
var $legacyInterface;
var $partStore;
var $receivingInterface;
public function __construct()
{
$this->legacyInterface = new LegacyProductDBInterface();
$this->partStore = new PartStore();
$this->receivingInterface = new ReceivingInterface();
}
public function displayMainInterface()
{
$this->receivingInterface->displayMainInterface();
}
public function accessDatabase($query)
{
return $this->legacyInterface->accessDatabase($query);
}
public function displayResults($rows)
{
$this->receivingInterface->displayResults($rows);
}
public function updateQuantity($partNum, $quantity)
{
$this->partStore->receivingUpdateInventory($partNum,$quantity);
}
}
?>