Definition at line 6 of file oxdeliverylist.php.
Public Member Functions | |
__construct ($sObjectsInListName= 'oxdelivery') | |
setHomeCountry ($sHomeCountry) | |
getDeliveryList ($oBasket, $oUser=null, $sDelCountry=null, $sDelSet=null) | |
hasDeliveries ($oBasket, $oUser, $sDelCountry, $sDeliverySetId) | |
getUser () | |
setUser ($oUser) | |
setCollectFittingDeliveriesSets ($blCollectFittingDeliveriesSets=false) | |
Static Public Member Functions | |
static | getInstance () |
Protected Member Functions | |
_getList ($oUser=null, $sCountryId=null, $sDelSet=null) | |
_getFilterSelect ($oUser, $sCountryId, $sDelSet) | |
Protected Attributes | |
$_sUserId = null | |
$_blPerfLoadDelivery = null | |
$_aDeliveries = array() | |
$_oUser = null | |
$_sHomeCountry = null | |
$_blCollectFittingDeliveriesSets = false | |
Static Private Attributes | |
static | $_instance = null |
oxDeliveryList.__construct | ( | $ | sObjectsInListName = 'oxdelivery' |
) |
Class constructor, sets callback so that Shopowner is able to add any information to the article.
string | $sObjectsInListName Object in list |
Reimplemented from oxList.
Definition at line 59 of file oxdeliverylist.php.
static oxDeliveryList.getInstance | ( | ) | [static] |
Returns oxDeliveryList instance
Definition at line 72 of file oxdeliverylist.php.
oxDeliveryList.setHomeCountry | ( | $ | sHomeCountry | ) |
Home country setter
string | $sHomeCountry home country id |
Definition at line 99 of file oxdeliverylist.php.
oxDeliveryList._getList | ( | $ | oUser = null , |
|
$ | sCountryId = null , |
|||
$ | sDelSet = null | |||
) | [protected] |
Returns active delivery list
Loads all active delivery in list. Additionally checks if set has user customized parameters like assigned users, countries or user groups. Performs additional filtering accordint to these parameters
oxUser | $oUser session user object | |
string | $sCountryId user country id | |
string | $sDelSet user chosen delivery set |
Definition at line 122 of file oxdeliverylist.php.
oxDeliveryList._getFilterSelect | ( | $ | oUser, | |
$ | sCountryId, | |||
$ | sDelSet | |||
) | [protected] |
Creates delivery list filter SQL to load current state delivery list
oxuser | $oUser session user object | |
string | $sCountryId user country id | |
string | $sDelSet user chosen delivery set |
Definition at line 163 of file oxdeliverylist.php.
oxDeliveryList.getDeliveryList | ( | $ | oBasket, | |
$ | oUser = null , |
|||
$ | sDelCountry = null , |
|||
$ | sDelSet = null | |||
) |
Loads and returns list of deliveries.
Process:
oDelivery->iItemCnt - items in basket that fits this delivery oDelivery->iProdCnt - products in basket that fits this delivery oDelivery->dPrice - price of products that fits this delivery
object | $oBasket basket object | |
oxuser | $oUser session user | |
string | $sDelCountry user country id | |
string | $sDelSet delivery set id |
Definition at line 249 of file oxdeliverylist.php.
oxDeliveryList.hasDeliveries | ( | $ | oBasket, | |
$ | oUser, | |||
$ | sDelCountry, | |||
$ | sDeliverySetId | |||
) |
Checks if deliveries in list fits for current basket and delivery set
oxbasket | $oBasket shop basket | |
oxuser | $oUser session user | |
string | $sDelCountry delivery country | |
string | $sDeliverySetId delivery set id to check its relation to delivery list |
Definition at line 327 of file oxdeliverylist.php.
oxDeliveryList.getUser | ( | ) |
Get current user object. If user is not set, try to get current user.
Reimplemented from oxSuperCfg.
Definition at line 349 of file oxdeliverylist.php.
oxDeliveryList.setUser | ( | $ | oUser | ) |
Set current user object
oxUser | $oUser user object |
Reimplemented from oxSuperCfg.
Definition at line 365 of file oxdeliverylist.php.
oxDeliveryList.setCollectFittingDeliveriesSets | ( | $ | blCollectFittingDeliveriesSets = false |
) |
Force or not to collect deliveries sets instead of deliveries when getting deliveries list in getDeliveryList()
bool | $blCollectFittingDeliveriesSets collect deliveries sets or not |
Definition at line 378 of file oxdeliverylist.php.
oxDeliveryList.$_instance = null [static, private] |
Definition at line 12 of file oxdeliverylist.php.
oxDeliveryList.$_sUserId = null [protected] |
Definition at line 18 of file oxdeliverylist.php.
oxDeliveryList.$_blPerfLoadDelivery = null [protected] |
Definition at line 24 of file oxdeliverylist.php.
oxDeliveryList.$_aDeliveries = array() [protected] |
Definition at line 30 of file oxdeliverylist.php.
oxDeliveryList.$_oUser = null [protected] |
Definition at line 36 of file oxdeliverylist.php.
oxDeliveryList.$_sHomeCountry = null [protected] |
Definition at line 43 of file oxdeliverylist.php.
oxDeliveryList.$_blCollectFittingDeliveriesSets = false [protected] |
Definition at line 50 of file oxdeliverylist.php.