Detailed Description
DeliverySet list manager.
Definition at line 7 of file oxdeliverysetlist.php.
Constructor & Destructor Documentation
oxDeliverySetList::__construct |
( |
| ) |
|
Member Function Documentation
oxDeliverySetList::_getFilterSelect |
( |
|
$oUser, |
|
|
|
$sCountryId |
|
) |
| |
|
protected |
Creates delivery set list filter SQL to load current state delivery set list
- Parameters
-
oxUser | $oUser | user object |
string | $sCountryId | user country id |
- Returns
- string
Definition at line 119 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 according to these parameters
- Parameters
-
oxUser | $oUser | user object |
string | $sCountryId | user country id |
- Returns
- array
Definition at line 76 of file oxdeliverysetlist.php.
oxDeliverySetList::getDeliverySetData |
( |
|
$sShipSet, |
|
|
|
$oUser, |
|
|
|
$oBasket |
|
) |
| |
Loads delivery set 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. Returns array containing:
- all ship sets that has payment (array)
- active ship set id (string)
- payment list for active ship set (array)
- Parameters
-
string | $sShipSet | current ship set id (can be null if not set yet) |
oxUser | $oUser | active user |
double | $oBasket | basket object |
- Returns
- array
Definition at line 216 of file oxdeliverysetlist.php.
oxDeliverySetList::getDeliverySetList |
( |
|
$oUser, |
|
|
|
$sCountryId, |
|
|
|
$sDelSet = null |
|
) |
| |
Creates current state delivery set list
- Parameters
-
oxUser | $oUser | user object |
string | $sCountryId | user country id |
string | $sDelSet | preferred delivery set ID (optional) |
- Returns
- array
Definition at line 184 of file oxdeliverysetlist.php.
oxDeliverySetList::getUser |
( |
| ) |
|
oxDeliverySetList::loadNonRDFaDeliverySetList |
( |
| ) |
|
Loads an object including all delivery sets which are not mapped to a predefined GoodRelations delivery method.
Definition at line 293 of file oxdeliverysetlist.php.
oxDeliverySetList::loadRDFaDeliverySetList |
( |
|
$sDelId = null | ) |
|
Loads delivery set mapped to a predefined GoodRelations delivery method.
- Parameters
-
string | $sDelId | delivery set id |
Definition at line 306 of file oxdeliverysetlist.php.
oxDeliverySetList::setHomeCountry |
( |
|
$sHomeCountry | ) |
|
Home country setter
- Parameters
-
string | $sHomeCountry | home country id |
Definition at line 54 of file oxdeliverysetlist.php.
oxDeliverySetList::setUser |
( |
|
$oUser | ) |
|
Member Data Documentation
oxDeliverySetList::$_oUser = null |
|
protected |
oxDeliverySetList::$_sCountryId = null |
|
protected |
oxDeliverySetList::$_sHomeCountry = null |
|
protected |
oxDeliverySetList::$_sUserId = null |
|
protected |
The documentation for this class was generated from the following file: