This commit is contained in:
louiscklaw
2025-01-31 19:15:17 +08:00
parent 09adae8c8e
commit 6c60a73f30
1546 changed files with 286918 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
class ConsignmentStore{
private $storeId;
private $storeName;
private $storeItemList;
function __construct($storeId, $storeName, $storeItemList){
$this->storeId = $storeId;
$this->storeName = $storeName;
$this->storeItemList = $storeItemList;
}
public function getStoreName(){
return $this->storeName;
}
public function getStoreItemList(){
return $this->storeItemList;
}
public function getStoreID(){
return $this->storeId;
}
}
?>

View File

@@ -0,0 +1,21 @@
<?php
class OrderHistoryModel{
private $orderInf;
private $orderItem;
function __construct($orderInf, $orderItem){
$this->orderInf = $orderInf;
$this->orderItem = $orderItem;
}
public function getOrderInf(){
return $this->orderInf;
}
public function getOrderItem(){
return $this->orderItem;
}
}
?>

View File

@@ -0,0 +1,28 @@
<?php
class OrderItem{
private $id;
private $qty;
private $price;
function __construct($id, $qty, $price){
$this->id = $id;
$this->qty = $qty;
$this->price = $price;
}
public function getId(){
return $this->id;
}
public function getQty(){
return $this->qty;
}
public function getPrice(){
return $this->price;
}
}
?>

View File

@@ -0,0 +1,44 @@
<?php
class Product{
private $id;
private $name;
private $status;
private $price;
private $stock;
private $qty;
function __construct($id, $name, $status, $price, $stock, $qty){
$this->id = $id;
$this->name = $name;
$this->status = $status;
$this->price = $price;
$this->stock = $stock;
$this->qty = $qty;
}
function getId(){
return $this->id;
}
function getName(){
return $this->name;
}
function getStatus(){
return $this->status;
}
function getPrice(){
return $this->price;
}
function getStock(){
return $this->stock;
}
function getQty(){
return $this->qty;
}
}
?>

View File

@@ -0,0 +1,34 @@
<?php
class StoreCart {
private $storeId;
private $storeName;
private $storeInf;
private $cartList;
function __construct($storeId, $storeName, $storeInf, $cartList){
$this->storeId = $storeId;
$this->storeName = $storeName;
$this->storeInf = $storeInf;
$this->cartList = $cartList;
}
public function getStoreInf(){
return $this->storeInf;
}
public function getCartList(){
return $this->cartList;
}
public function getStoreName(){
return $this->storeName;
}
public function getStoreId(){
return $this->storeId;
}
}
?>

View File

@@ -0,0 +1,33 @@
<?php
class UserProfile {
private $customerEmail;
private $firstName;
private $lastName;
private $phoneNumber;
function __construct($customerEmail, $firstName, $lastName, $phoneNumber){
$this->customerEmail = $customerEmail;
$this->firstName = $firstName;
$this->lastName = $lastName;
$this->phoneNumber = $phoneNumber;
}
public function getCustomerEmail(){
return $this->customerEmail;
}
public function getFirstName(){
return $this->firstName;
}
public function getLastName(){
return $this->lastName;
}
public function getPhoneNumber(){
return $this->phoneNumber;
}
}
?>