Shop_Delivery_Handler
in package
AbstractYes
Online shop.
Tags
Table of Contents
Properties
- $_amount : mixed
- Total Amount
- $_postcode : string
- postcode
- $_Shop_Delivery_Model : Shop_Delivery_Model
- Delivery
- $_shopCity : object
- customer city
- $_shopCompany : object
- customer company
- $_shopCountry : object
- customer country
- $_shopLocation : object
- customer location
- $_timeFrom : string
- time from
- $_timeTo : string
- time to
- $_volume : float
- volume
- $_weight : mixed
- Total Weight
Methods
- __construct() : mixed
- Constructor.
- amount() : self
- Set Amount
- checkAfterContent() : mixed
- Call ->checkPaymentAfterContent() on each shop's Shop_Delivery_Handler
- checkBeforeContent() : mixed
- Call ->checkPaymentBeforeContent() on each shop's Shop_Delivery_Handler
- city() : self
- Set city
- company() : self
- Set company
- country() : self
- Set country
- execute() : mixed
- Execute business logic
- factory() : mixed
- Build Shop_Delivery_Handler class
- location() : self
- Set location
- postcode() : self
- Set postcode
- process() : mixed
- timeFrom() : self
- Set time from
- timeTo() : self
- Set time to
- volume() : self
- Set volume
- weight() : self
- Set Weight
- _check() : mixed
- Protected method to call $methodName on each shop's Shop_Payment_System_Handlers
Properties
$_amount
Total Amount
protected
mixed
$_amount
= \NULL
$_postcode
postcode
protected
string
$_postcode
= \NULL
$_Shop_Delivery_Model
Delivery
protected
Shop_Delivery_Model
$_Shop_Delivery_Model
= \NULL
$_shopCity
customer city
protected
object
$_shopCity
= \NULL
$_shopCompany
customer company
protected
object
$_shopCompany
= \NULL
$_shopCountry
customer country
protected
object
$_shopCountry
= \NULL
$_shopLocation
customer location
protected
object
$_shopLocation
= \NULL
$_timeFrom
time from
protected
string
$_timeFrom
= \NULL
$_timeTo
time to
protected
string
$_timeTo
= \NULL
$_volume
volume
protected
float
$_volume
= \NULL
$_weight
Total Weight
protected
mixed
$_weight
= \NULL
Methods
__construct()
Constructor.
public
__construct(Shop_Delivery_Model $oShop_Delivery_Model) : mixed
Parameters
- $oShop_Delivery_Model : Shop_Delivery_Model
-
delivery
amount()
Set Amount
public
amount(string $amount) : self
Parameters
- $amount : string
Return values
selfcheckAfterContent()
Call ->checkPaymentAfterContent() on each shop's Shop_Delivery_Handler
public
static checkAfterContent(Shop_Model $oShop) : mixed
Parameters
- $oShop : Shop_Model
checkBeforeContent()
Call ->checkPaymentBeforeContent() on each shop's Shop_Delivery_Handler
public
static checkBeforeContent(Shop_Model $oShop) : mixed
Parameters
- $oShop : Shop_Model
city()
Set city
public
city(int $iCityID) : self
Parameters
- $iCityID : int
-
country ID
Return values
selfcompany()
Set company
public
company(Shop_Company_Model $oShop_Company) : self
Parameters
- $oShop_Company : Shop_Company_Model
-
company
Return values
selfcountry()
Set country
public
country(int $iCountryID) : self
Parameters
- $iCountryID : int
-
country ID
Return values
selfexecute()
Execute business logic
public
abstract execute() : mixed
factory()
Build Shop_Delivery_Handler class
public
static factory(Shop_Delivery_Model $oShop_Delivery_Model) : mixed
Parameters
- $oShop_Delivery_Model : Shop_Delivery_Model
-
shop delivery
location()
Set location
public
location(int $iLocationID) : self
Parameters
- $iLocationID : int
-
country ID
Return values
selfpostcode()
Set postcode
public
postcode(string $sPostcode) : self
Parameters
- $sPostcode : string
-
volume
Return values
selfprocess()
public
process(mixed $position) : mixed
Parameters
- $position : mixed
timeFrom()
Set time from
public
timeFrom(string $time_from) : self
Parameters
- $time_from : string
Return values
selftimeTo()
Set time to
public
timeTo(string $time_to) : self
Parameters
- $time_to : string
Return values
selfvolume()
Set volume
public
volume(float $fVolume) : self
Parameters
- $fVolume : float
-
volume
Return values
selfweight()
Set Weight
public
weight(string $weight) : self
Parameters
- $weight : string
Return values
self_check()
Protected method to call $methodName on each shop's Shop_Payment_System_Handlers
protected
static _check(Shop_Model $oShop, mixed $methodName) : mixed
Parameters
- $oShop : Shop_Model
- $methodName : mixed