ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($user_obj) | |
setSessionId ($a_session_id) | |
getSessionId () | |
setPobjectId ($a_pobject_id) | |
getPobjectId () | |
setPriceId ($a_price_id) | |
getPriceId () | |
getEntries ($a_pay_method=0) | |
setTotalAmount ($a_total_amount) | |
getTotalAmount () | |
isInShoppingCart ($a_pobject_id) | |
getEntry ($a_pobject_id) | |
add () | |
update ($a_psc_id) | |
delete ($a_psc_id) | |
emptyShoppingCart () | |
getShoppingCart ($a_pay_method=0) | |
getTotalAmountValue ($a_pay_method=0) | |
getVat ($a_amount=0, $a_pobject_id=0) | |
clearCouponItemsSession () | |
calcDiscountPrices ($coupons) |
Static Public Member Functions | |
static | _assignObjectsToUserId ($a_user_id) |
static | _migrateShoppingcart ($a_old_sessid, $a_new_sessid) |
static | _hasEntries ($a_user_id) |
static | _deleteExpiredSessionsPSC () |
static | _deleteShoppingCartEntries ($a_pobject_id) |
static | getShoppingcartEntries ($a_paymethod=null) |
Data Fields | |
$user_obj = null | |
$db = null | |
$coupon_obj = null | |
$sc_entries = array() | |
$session_id = null | |
$pobject_id = null | |
$price_id = null | |
$total_amount = null | |
$vat_id = null | |
$vat_rate = 0 |
Private Member Functions | |
__deleteDoubleEntries () | |
__read () |
Definition at line 16 of file class.ilPaymentShoppingCart.php.
ilPaymentShoppingCart::__construct | ( | $user_obj | ) |
Definition at line 37 of file class.ilPaymentShoppingCart.php.
References $ilDB, $user_obj, __deleteDoubleEntries(), and __read().
|
private |
Definition at line 310 of file class.ilPaymentShoppingCart.php.
References $ilUser, $res, and $row.
Referenced by __construct().
|
private |
Definition at line 338 of file class.ilPaymentShoppingCart.php.
References $_SESSION, $ilUser, $res, $row, ilPaymentPrices\_getTotalAmount(), ilPaymentPrices\_priceExists(), getSessionId(), setPobjectId(), and setTotalAmount().
Referenced by __construct(), add(), delete(), emptyShoppingCart(), and update().
|
static |
Definition at line 105 of file class.ilPaymentShoppingCart.php.
References $ilDB, and $session_id.
Referenced by ilShopShoppingCartGUI\__construct(), and ilShopShoppingCartGUI\forceShoppingCartRedirect().
|
static |
Definition at line 573 of file class.ilPaymentShoppingCart.php.
|
static |
Definition at line 586 of file class.ilPaymentShoppingCart.php.
References $ilDB.
Referenced by ilPaymentObjectGUI\updateDetails().
|
static |
Definition at line 286 of file class.ilPaymentShoppingCart.php.
References $ilDB, $ilUser, and $res.
|
static |
Definition at line 118 of file class.ilPaymentShoppingCart.php.
References $ilDB.
ilPaymentShoppingCart::add | ( | ) |
Definition at line 184 of file class.ilPaymentShoppingCart.php.
References $ilUser, __read(), getPobjectId(), getPriceId(), and getSessionId().
ilPaymentShoppingCart::calcDiscountPrices | ( | $coupons | ) |
Definition at line 538 of file class.ilPaymentShoppingCart.php.
ilPaymentShoppingCart::clearCouponItemsSession | ( | ) |
Definition at line 520 of file class.ilPaymentShoppingCart.php.
References $_SESSION.
ilPaymentShoppingCart::delete | ( | $a_psc_id | ) |
Definition at line 251 of file class.ilPaymentShoppingCart.php.
References __read().
ilPaymentShoppingCart::emptyShoppingCart | ( | ) |
Definition at line 261 of file class.ilPaymentShoppingCart.php.
References $ilUser, __read(), and getSessionId().
ilPaymentShoppingCart::getEntries | ( | $a_pay_method = 0 | ) |
Definition at line 77 of file class.ilPaymentShoppingCart.php.
Referenced by getShoppingCart().
ilPaymentShoppingCart::getEntry | ( | $a_pobject_id | ) |
Definition at line 155 of file class.ilPaymentShoppingCart.php.
References $ilUser, $res, and getSessionId().
ilPaymentShoppingCart::getPobjectId | ( | ) |
Definition at line 64 of file class.ilPaymentShoppingCart.php.
References $pobject_id.
Referenced by add(), and update().
ilPaymentShoppingCart::getPriceId | ( | ) |
Definition at line 72 of file class.ilPaymentShoppingCart.php.
References $price_id.
Referenced by add(), and update().
ilPaymentShoppingCart::getSessionId | ( | ) |
Definition at line 55 of file class.ilPaymentShoppingCart.php.
References $session_id.
Referenced by __read(), add(), emptyShoppingCart(), getEntry(), isInShoppingCart(), and update().
ilPaymentShoppingCart::getShoppingCart | ( | $a_pay_method = 0 | ) |
Definition at line 419 of file class.ilPaymentShoppingCart.php.
References $lng, ilPaymentPrices\_getPrice(), ilPaymentPrices\_getPriceString(), getEntries(), ilObjectFactory\getInstanceByRefId(), and ilShopVats\getRate().
Referenced by getTotalAmountValue().
|
static |
integer | null | $a_paymethod |
Definition at line 601 of file class.ilPaymentShoppingCart.php.
References $ilDB, $ilUser, $res, and $row.
ilPaymentShoppingCart::getTotalAmount | ( | ) |
Definition at line 100 of file class.ilPaymentShoppingCart.php.
References $total_amount.
ilPaymentShoppingCart::getTotalAmountValue | ( | $a_pay_method = 0 | ) |
Definition at line 480 of file class.ilPaymentShoppingCart.php.
References $result, and getShoppingCart().
ilPaymentShoppingCart::getVat | ( | $a_amount = 0 , |
|
$a_pobject_id = 0 |
|||
) |
Definition at line 494 of file class.ilPaymentShoppingCart.php.
References $ilDB, $res, and $row.
ilPaymentShoppingCart::isInShoppingCart | ( | $a_pobject_id | ) |
Definition at line 128 of file class.ilPaymentShoppingCart.php.
References $ilUser, $res, $session_id, and getSessionId().
ilPaymentShoppingCart::setPobjectId | ( | $a_pobject_id | ) |
Definition at line 60 of file class.ilPaymentShoppingCart.php.
Referenced by __read().
ilPaymentShoppingCart::setPriceId | ( | $a_price_id | ) |
Definition at line 68 of file class.ilPaymentShoppingCart.php.
ilPaymentShoppingCart::setSessionId | ( | $a_session_id | ) |
Definition at line 50 of file class.ilPaymentShoppingCart.php.
ilPaymentShoppingCart::setTotalAmount | ( | $a_total_amount | ) |
Definition at line 96 of file class.ilPaymentShoppingCart.php.
Referenced by __read().
ilPaymentShoppingCart::update | ( | $a_psc_id | ) |
Definition at line 225 of file class.ilPaymentShoppingCart.php.
References $ilUser, __read(), getPobjectId(), getPriceId(), and getSessionId().
ilPaymentShoppingCart::$coupon_obj = null |
Definition at line 24 of file class.ilPaymentShoppingCart.php.
ilPaymentShoppingCart::$db = null |
Definition at line 22 of file class.ilPaymentShoppingCart.php.
ilPaymentShoppingCart::$pobject_id = null |
Definition at line 29 of file class.ilPaymentShoppingCart.php.
Referenced by getPobjectId().
ilPaymentShoppingCart::$price_id = null |
Definition at line 30 of file class.ilPaymentShoppingCart.php.
Referenced by getPriceId().
ilPaymentShoppingCart::$sc_entries = array() |
Definition at line 26 of file class.ilPaymentShoppingCart.php.
ilPaymentShoppingCart::$session_id = null |
Definition at line 27 of file class.ilPaymentShoppingCart.php.
Referenced by _assignObjectsToUserId(), getSessionId(), and isInShoppingCart().
ilPaymentShoppingCart::$total_amount = null |
Definition at line 31 of file class.ilPaymentShoppingCart.php.
Referenced by getTotalAmount().
ilPaymentShoppingCart::$user_obj = null |
Definition at line 21 of file class.ilPaymentShoppingCart.php.
Referenced by __construct().
ilPaymentShoppingCart::$vat_id = null |
Definition at line 32 of file class.ilPaymentShoppingCart.php.
ilPaymentShoppingCart::$vat_rate = 0 |
Definition at line 33 of file class.ilPaymentShoppingCart.php.