Sie sind auf Seite 1von 6

Classes

1. Page
2. Order -> OrderDetails -> OrderDiscount -> Order History -> OrderMessage
2. Cart
3. Ship
4. Tax
5. Payment
6. Configuration
7. Customer
8. Mail
9. Country
10. State
11. Product --
12. Category --- Done
13. Address
1. Class: Page
Variables:
$meta_title
$meta_description
$meta_keywords
2. Class: Link
Methods:
Public:
/**
* @function: Get the product link
* @input: integer product_id
* @return: string URL
*
*/
1. get_product_link()
/**
* @function: Get the category link
* @input: integer category_id
* @return: string URL
*
*/
2. get_category_link()
/**
* @function: Get the category link
* @input: integer page_tag
* @return: string URL
*
*/
3. get_page_link()
3. Class: Category
Variables:
Public:
$id_category // Category ID
$is_active // Status of the category
$date_added // Category added date
$date_updated // Category updated date
$site_status // Category site status value (ROam
4Less, Roam4Zero)
Protected:
$table_name // Table name "products_category
$identifier // Table Identifier (Mostly the pri
mary key of the table) "cat_id"
Methods:
Public:
/**
* @function: Set the Category attributes like $id_cat
egory, page_tag, date added etc..
* @input: integer category_id
* @return: None
*
*/
_construct()
/**
* @function: Get the fields category properties i.e.
$is_active, $date_added, $date_updated etc.... based on id_category
* @input: None
* @return: array fields
*
*/
get_fields()
/*
* @function: Based on category ID, get the product de
tails
* @input: string $order_by //
boolean $get_total // By default FA
LSE, If TRUE, return the total products in the category
boolean $is_active // By default TR
UE, IF TRUE consider ONLY active products, else consider ALL products
* @return: array fields of product details
*
*/
get_products($order_by = NULL, $get_total = false, $is_a
ctive = true)
/**
* @function: Get the category link
* @input: None
* @return: Link:category_link
*
**/
set_link()
/**
* @function: Get the category name
* @input: None
* @return: string with the category name
*
**/
get_cat_name()
/**
* @function: Get the category page content (descripti
on) based on the page tag
* @input: None
* @return: Category page content - Page:get_page_co
ntent()
*
**/
get_cat_description()
4. Class: Product
Variables:
public:
$id_product // Product ID
$id_category // Category ID
$is_active // Status of the product
$date_added // Product added date
$date_updated // Product updated date
$site_status // Product site status value (ROam4Less,
Roam4Zero)
protected:
$table_name // Table name "products"
$identifier // Table Identifier (Mostly the primary
key of the table) "pro_id"
$order_by // default order "rank" in database
Methods:
Public:
/*
* @function: Set the product properties like product_
id, category_id, page_tag, date added etc..
* @input: integer product id
* @return: None
*
*/
_construct()
/*
* @function: Get the fields product properties i.e. i
s_active, date_added, date_updated etc.... based on $id_product
* @input: None
* @return: array fields
*
*/
get_fields()
/**
* @function: Get product price
* @input: integer $quantity // product quant
ity, By Default value:1
* @return: float Product price
*/
get_price_without_reduct()
/**
* @function: Get product reduced price
* @input: integer $quantity // product quant
ity, By Default value:1
* @return: float Product price
*/
get_price_after_reduct()
/**
* @function: Get product Image
* @input: None
* @return: string image path
*/
get_product_image()
/**
* @function: Get product thumbnail image
* @input: None
* @return: string image path
*/
get_product_thumb()
/**
* @function: Get product short description
* @input: None
* @return: string short description
*/
get_short_desc()
/**
* @function: Get product spec description
* @input: None
* @return: string spec description
*/
get_spec_desc()
/**
* @function: Get product description
* @input: None
* @return: string description
*/
get_product_desc()
/**
* @function: Check Available product quantity
* @input: None
* @return: intiger available product quantity
*/
check_qty()
/**
* @function: Check product is available in the stock
or not
* @input: None
* @return: Boolean TRUE or FALSE
*/
is_available_stock()
/**
* @function: get product properties like price withou
t reduction, quantity, product name, description etc..
* @input: None
* @return: Array product properties
*/
get_product_properties()
/**
* @function: get product sim credit ( the airtime tha
t customer would get after purchasing the product)
* @input: None
* @return: product sim credit
*/
get_product_airtime()
4. Class: Order
Variables:
public:
$id_customer // customer ID
$payment_id // Payment method ID (Authorize.
NET -1, Paypal 02, Google Checkout -3)
$order_total // total order amount
$total_paid // total paid amount
$total_products // total products
$is_valid // check order validity
$get_storage_method // Session or Database?
$cart_id // temporary cart id
protected:
$tables // Tables in this order "orderdetails",
"products_order", "order_payment"
$identifier // Table Identifier (Mostly the primary
key of the table) "order_id"
Methods:
public:
/**
* @function: set order details like id_customer, paym
ent_id, orderdtotal etc...
* @input: None
* @return: None
*/
1. _construct
/**
* @function: get order details like id_customer, paym
ent_id, orderdtotal etc...
* @input: None
* @return: product sim credit
*/
2. get_fields
/**
* @function: set product prices in the cart
* @input: cart_row
* @return: product sim credit
*/
3. set_product_prices

Das könnte Ihnen auch gefallen