ILIAS
Release_4_2_x_branch Revision 61807
|
Class ilShopShoppingCartGUI. More...
Public Member Functions | |
__construct ($user_obj) | |
executeCommand () | |
execute command | |
unlockBillObjectsInShoppingCart () | |
unlockBMFObjectsInShoppingCart () | |
unlockPAYPALObjectsInShoppingCart () | |
checkCouponsOfShoppingCart () | |
finishEPay () | |
Return from ePay. | |
finishPaypal () | |
cancelEPay () | |
cancelPaypal () | |
cartNotEmpty () | |
showItems () | |
setCoupon () | |
removeCoupon () | |
deleteItem () | |
newUserForm () | |
validateNewUser () | |
Public Member Functions inherited from ilShopBaseGUI | |
__construct () |
Protected Member Functions | |
prepareOutput () | |
Protected Member Functions inherited from ilShopBaseGUI | |
addPager ($result, $a_session_key) | |
buildSubTabs () | |
setSection ($a_section) | |
getSection () | |
setSubSection ($a_sub_section) | |
getSubSection () | |
showButton ($a_cmd, $a_text, $a_target= '') | |
initTableGUI () | |
setTableGUIBasicData ($tbl, $result_set, $a_default_order_column= '') |
Private Member Functions | |
addBookings ($pay_method, $coupon_session) | |
_getPayMethods ($limitToEnabled=false) | |
_getTemplateFilename ($a_pm_title) | |
showCouponInput ($payment_type= '') | |
showItemsTable (&$a_tpl, $a_result_set, $a_pay_method=0) | |
initShoppingCartObject () | |
initPaypalObject () | |
encryptButton ($buttonParams) | |
Creates a new encrypted button HTML block. |
Private Attributes | |
$user_obj | |
$psc_obj = null | |
$paypal_obj = null | |
$totalAmount = array() | |
$totalVat = 0 | |
$epSet | |
$session_id |
Additional Inherited Members | |
Protected Attributes inherited from ilShopBaseGUI | |
$ctrl = null | |
$ilias = null | |
$lng = null | |
$tpl = null | |
$oGeneralSettings = null | |
$section = 0 | |
$sub_section = 0 |
Class ilShopShoppingCartGUI.
Definition at line 26 of file class.ilShopShoppingCartGUI.php.
ilShopShoppingCartGUI::__construct | ( | $user_obj | ) |
Definition at line 39 of file class.ilShopShoppingCartGUI.php.
References $user_obj, ilShopBaseGUI\__construct(), checkCouponsOfShoppingCart(), ilPaypalSettings\getInstance(), and ilEPaySettings\getInstance().
|
private |
Definition at line 420 of file class.ilShopShoppingCartGUI.php.
Referenced by cartNotEmpty(), and showItems().
|
private |
Definition at line 454 of file class.ilShopShoppingCartGUI.php.
Referenced by showItems().
|
private |
Definition at line 144 of file class.ilShopShoppingCartGUI.php.
References $_SESSION, ilShopBaseGUI\$ilias, $pay_method, ilPaymentPrices\_getPrice(), ilPaymentPrices\_getPriceString(), and ilShopVats\getRate().
Referenced by unlockBMFObjectsInShoppingCart().
ilShopShoppingCartGUI::cancelEPay | ( | ) |
Definition at line 408 of file class.ilShopShoppingCartGUI.php.
References ilUtil\sendInfo(), and showItems().
ilShopShoppingCartGUI::cancelPaypal | ( | ) |
Definition at line 414 of file class.ilShopShoppingCartGUI.php.
References ilUtil\sendInfo(), and showItems().
ilShopShoppingCartGUI::cartNotEmpty | ( | ) |
Definition at line 463 of file class.ilShopShoppingCartGUI.php.
References _getPayMethods().
ilShopShoppingCartGUI::checkCouponsOfShoppingCart | ( | ) |
Definition at line 269 of file class.ilShopShoppingCartGUI.php.
References $_SESSION, and $pay_method.
Referenced by __construct(), and deleteItem().
ilShopShoppingCartGUI::deleteItem | ( | ) |
Definition at line 1131 of file class.ilShopShoppingCartGUI.php.
References $_POST, checkCouponsOfShoppingCart(), initShoppingCartObject(), ilUtil\sendInfo(), and showItems().
|
private |
Creates a new encrypted button HTML block.
array | The button parameters as key/value pairs |
Definition at line 1170 of file class.ilShopShoppingCartGUI.php.
References $data.
ilShopShoppingCartGUI::executeCommand | ( | ) |
execute command
Definition at line 62 of file class.ilShopShoppingCartGUI.php.
References $cmd, and prepareOutput().
ilShopShoppingCartGUI::finishEPay | ( | ) |
Return from ePay.
: Check for ePay/PBS error
: Flyt fakturering til callback
Definition at line 333 of file class.ilShopShoppingCartGUI.php.
References $_REQUEST, ilShopBaseGUI\$ilias, ilPayMethods\_getIdByTitle(), ilPurchase\purchase(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilShopShoppingCartGUI::finishPaypal | ( | ) |
Definition at line 354 of file class.ilShopShoppingCartGUI.php.
References $_SESSION, $res, ERROR_FAIL, ERROR_NOT_COMPLETED, ERROR_PREV_TRANS_ID, ERROR_WRONG_CUSTOMER, ERROR_WRONG_ITEMS, ERROR_WRONG_VENDOR, initPaypalObject(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showItems(), and SUCCESS.
|
private |
Definition at line 1159 of file class.ilShopShoppingCartGUI.php.
Referenced by finishPaypal().
|
private |
Definition at line 1153 of file class.ilShopShoppingCartGUI.php.
Referenced by deleteItem(), and showItems().
ilShopShoppingCartGUI::newUserForm | ( | ) |
Definition at line 1241 of file class.ilShopShoppingCartGUI.php.
References $_SESSION, $ilCtrl, ilShopBaseGUI\$lng, ilShopBaseGUI\$tpl, ilPasswordInputGUI\setRetype(), and ilTextInputGUI\setValue().
|
protected |
Reimplemented from ilShopBaseGUI.
Definition at line 84 of file class.ilShopShoppingCartGUI.php.
Referenced by executeCommand().
ilShopShoppingCartGUI::removeCoupon | ( | ) |
Definition at line 967 of file class.ilShopShoppingCartGUI.php.
References $_GET, $_SESSION, and showItems().
ilShopShoppingCartGUI::setCoupon | ( | ) |
Definition at line 899 of file class.ilShopShoppingCartGUI.php.
References $_POST, $_SESSION, ilUtil\sendInfo(), and showItems().
|
private |
Definition at line 985 of file class.ilShopShoppingCartGUI.php.
References $_SESSION, ilShopBaseGUI\$tpl, ilPaymentSettings\_getInstance(), ilUtil\getImagePath(), and ilUtil\switchColor().
Referenced by showItems().
ilShopShoppingCartGUI::showItems | ( | ) |
http://uk.epay.dk/support/docs.asp?solution=2#pfinput
Definition at line 480 of file class.ilShopShoppingCartGUI.php.
References $_SESSION, $pay_method, ilShopBaseGUI\$tpl, ilShopUtils\_formatVAT(), ilPaymentPrices\_getGUIPrice(), ilPaymentSettings\_getInstance(), _getPayMethods(), ilPaymentPrices\_getPrice(), ilPaymentPrices\_getPriceString(), _getTemplateFilename(), initShoppingCartObject(), ilUtil\sendInfo(), showCouponInput(), and showItemsTable().
Referenced by cancelEPay(), cancelPaypal(), deleteItem(), finishPaypal(), removeCoupon(), setCoupon(), and validateNewUser().
|
private |
Definition at line 1036 of file class.ilShopShoppingCartGUI.php.
References $_SESSION, $totalAmount, ilPaymentSettings\_getInstance(), ilPaymentPrices\_getPrice(), and ilPayMethods\getStringByPaymethod().
Referenced by showItems().
ilShopShoppingCartGUI::unlockBillObjectsInShoppingCart | ( | ) |
Definition at line 92 of file class.ilShopShoppingCartGUI.php.
References ilPayMethods\_getIdByTitle().
ilShopShoppingCartGUI::unlockBMFObjectsInShoppingCart | ( | ) |
Definition at line 103 of file class.ilShopShoppingCartGUI.php.
References $_SESSION, addBookings(), and ilUtil\sendInfo().
ilShopShoppingCartGUI::unlockPAYPALObjectsInShoppingCart | ( | ) |
Definition at line 119 of file class.ilShopShoppingCartGUI.php.
References ilPayMethods\_getIdByTitle(), and ilUtil\sendSuccess().
ilShopShoppingCartGUI::validateNewUser | ( | ) |
Definition at line 1268 of file class.ilShopShoppingCartGUI.php.
References $_POST, $_SESSION, ilShopBaseGUI\$ilias, ilShopBaseGUI\$lng, ilShopBaseGUI\$tpl, ilShopUtils\_assignTransactionToCustomerId(), ilCourseParticipants\_getInstanceByObjId(), ilObjUser\_lookupId(), IL_CRS_MEMBER, ilUtil\sendInfo(), and showItems().
|
private |
Definition at line 34 of file class.ilShopShoppingCartGUI.php.
|
private |
Definition at line 30 of file class.ilShopShoppingCartGUI.php.
|
private |
Definition at line 29 of file class.ilShopShoppingCartGUI.php.
|
private |
Definition at line 37 of file class.ilShopShoppingCartGUI.php.
|
private |
Definition at line 32 of file class.ilShopShoppingCartGUI.php.
Referenced by showItemsTable().
|
private |
Definition at line 33 of file class.ilShopShoppingCartGUI.php.
|
private |
Definition at line 28 of file class.ilShopShoppingCartGUI.php.
Referenced by __construct().