Definition at line 6 of file oxdeliverysetlist.php.
Public Member Functions | |
__construct ($sObjectsInListName= 'oxdeliveryset') | |
setHomeCountry ($sHomeCountry) | |
getDeliverySetList ($oUser, $sCountryId, $sDelSet=null) | |
getDeliverySetData ($sShipSet, $oUser, $oBasket) | |
getUser () | |
setUser ($oUser) | |
Static Public Member Functions | |
static | getInstance () |
Protected Member Functions | |
_getList ($oUser=null, $sCountryId=null) | |
_getFilterSelect ($oUser, $sCountryId) | |
Protected Attributes | |
$_sUserId = null | |
$_sCountryId = null | |
$_oUser = null | |
$_sHomeCountry = null | |
Static Private Attributes | |
static | $_instance = null |
oxDeliverySetList.__construct | ( | $ | sObjectsInListName = 'oxdeliveryset' |
) |
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 48 of file oxdeliverysetlist.php.
oxDeliverySetList.setHomeCountry | ( | $ | sHomeCountry | ) |
Home country setter
string | $sHomeCountry home country id |
Definition at line 61 of file oxdeliverysetlist.php.
static oxDeliverySetList.getInstance | ( | ) | [static] |
Returns oxDeliverySetList instance
Definition at line 75 of file oxdeliverysetlist.php.
oxDeliverySetList._getList | ( | $ | oUser = null , |
|
$ | sCountryId = null | |||
) | [protected] |
Returns active delivery set list
Loads all active delivery sets 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 user object | |
string | $sCountryId user country id |
Definition at line 109 of file oxdeliverysetlist.php.
oxDeliverySetList._getFilterSelect | ( | $ | oUser, | |
$ | sCountryId | |||
) | [protected] |
Creates delivery set list filter SQL to load current state delivery set list
oxUser | $oUser user object | |
string | $sCountryId user country id |
Definition at line 152 of file oxdeliverysetlist.php.
oxDeliverySetList.getDeliverySetList | ( | $ | oUser, | |
$ | sCountryId, | |||
$ | sDelSet = null | |||
) |
Creates current state delivery set list
oxUser | $oUser user object | |
string | $sCountryId user country id | |
string | $sDelSet preferred delivery set ID (optional) |
Definition at line 211 of file oxdeliverysetlist.php.
oxDeliverySetList.getDeliverySetData | ( | $ | sShipSet, | |
$ | oUser, | |||
$ | oBasket | |||
) |
Loads deliveryset data, checks if it has payments assigned. If active delivery set id is passed - checks if it can be used, if not - takes first ship set id from list which fits. For active ship set collects payment list info. Retuns array containing: 1. all ship sets that has payment (array) 2. active ship set id (string) 3. payment list for active ship set (array)
string | $sShipSet current ship set id (can be null if not set yet) | |
oxuser | $oUser active user | |
double | $oBasket basket object |
Definition at line 242 of file oxdeliverysetlist.php.
oxDeliverySetList.getUser | ( | ) |
Get current user object. If user is not set, try to get current user.
Reimplemented from oxSuperCfg.
Definition at line 295 of file oxdeliverysetlist.php.
oxDeliverySetList.setUser | ( | $ | oUser | ) |
Set current user object
oxUser | $oUser user object |
Reimplemented from oxSuperCfg.
Definition at line 311 of file oxdeliverysetlist.php.
oxDeliverySetList.$_instance = null [static, private] |
Definition at line 12 of file oxdeliverysetlist.php.
oxDeliverySetList.$_sUserId = null [protected] |
Definition at line 19 of file oxdeliverysetlist.php.
oxDeliverySetList.$_sCountryId = null [protected] |
Definition at line 26 of file oxdeliverysetlist.php.
oxDeliverySetList.$_oUser = null [protected] |
Definition at line 33 of file oxdeliverysetlist.php.
oxDeliverySetList.$_sHomeCountry = null [protected] |
Definition at line 40 of file oxdeliverysetlist.php.