ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_pobject_id=0) | |
setPriceType ($a_price_type) | |
getPriceType () | |
getPobjectId () | |
getPrices () | |
getPrice ($a_price_id) | |
setPrice ($a_price=0) | |
setCurrency ($a_currency_id) | |
setDuration ($a_duration) | |
setUnlimitedDuration ($a_unlimited_duration) | |
setExtension ($a_extension) | |
getExtension () | |
add () | |
update ($a_price_id) | |
delete ($a_price_id) | |
deleteAllPrices () | |
validate () | |
Validates a price before database manipulations. | |
getExtensionPrices () | |
getNumberOfPrices () | |
getLowestPrice () | |
setDurationFrom ($a_duration_from) | |
setDurationUntil ($a_duration_until) | |
setDescription ($a_description) |
Static Public Member Functions | |
static | _getPrice ($a_price_id) |
static | _countPrices ($a_pobject_id) |
static | _getPriceString ($a_price_id) |
static | _getGUIPrice ($a_price) |
static | _formatPriceToString ($a_price) |
static | _getPriceStringFromAmount ($a_price) |
static | _getTotalAmount ($a_price_ids) |
static | _priceExists ($a_price_id, $a_pobject_id) |
Data Fields | |
const | TYPE_DURATION_MONTH = 1 |
const | TYPE_DURATION_DATE = 2 |
const | TYPE_UNLIMITED_DURATION = 3 |
$price_type = self::TYPE_DURATION_MONTH |
Private Member Functions | |
__getPrice () | |
__getCurrency () | |
__getDuration () | |
__getUnlimitedDuration () | |
__read ($with_extension_prices=false) | |
__getDurationFrom () | |
__getDurationUntil () | |
__getDescription () |
Private Attributes | |
$pobject_id | |
$price | |
$currency | |
$duration = 0 | |
$unlimited_duration = 0 | |
$extension = 0 | |
$duration_from | |
$duration_until | |
$description | |
$prices = array() |
Definition at line 11 of file class.ilPaymentPrices.php.
ilPaymentPrices::__construct | ( | $a_pobject_id = 0 | ) |
|
private |
Definition at line 374 of file class.ilPaymentPrices.php.
References $currency.
Referenced by add(), and update().
|
private |
Definition at line 510 of file class.ilPaymentPrices.php.
References $description.
Referenced by add(), and update().
|
private |
Definition at line 381 of file class.ilPaymentPrices.php.
References $duration.
Referenced by add(), update(), and validate().
|
private |
Definition at line 501 of file class.ilPaymentPrices.php.
References $duration_from.
Referenced by add(), update(), and validate().
|
private |
Definition at line 506 of file class.ilPaymentPrices.php.
References $duration_until.
Referenced by add(), update(), and validate().
|
private |
Definition at line 370 of file class.ilPaymentPrices.php.
References $price.
Referenced by add(), update(), and validate().
|
private |
Definition at line 385 of file class.ilPaymentPrices.php.
References $unlimited_duration.
Referenced by add(), and update().
|
private |
Definition at line 390 of file class.ilPaymentPrices.php.
References $res, $row, and getPobjectId().
Referenced by __construct(), add(), delete(), deleteAllPrices(), and update().
|
static |
|
static |
Definition at line 144 of file class.ilPaymentPrices.php.
References _getGUIPrice(), and ilPaymentSettings\_getInstance().
Referenced by ilShopResultPresentationGUI\renderItems(), and ilShopPurchaseGUI\showDetails().
|
static |
Definition at line 122 of file class.ilPaymentPrices.php.
References $lng.
Referenced by _formatPriceToString(), _getPriceString(), and ilShopShoppingCartGUI\showItems().
|
static |
Definition at line 74 of file class.ilPaymentPrices.php.
References $ilDB, $price, $res, and $row.
Referenced by ilPurchaseBaseGUI\__getShoppingCart(), ilPurchaseBaseGUI\__showItemsTable(), ilPurchaseBaseGUI\__showShoppingCart(), _getPriceString(), _getTotalAmount(), ilShopShoppingCartGUI\addBookings(), ilObjPaymentSettingsGUI\editPriceObject(), ilPaymentShoppingCart\getShoppingCart(), ilObjPaymentSettingsGUI\saveCustomerObject(), ilShopShoppingCartGUI\showItems(), and ilShopShoppingCartGUI\showItemsTable().
|
static |
Definition at line 114 of file class.ilPaymentPrices.php.
References $price, _getGUIPrice(), and _getPrice().
Referenced by ilShopShoppingCartGUI\addBookings(), ilPaymentStatisticGUI\addCustomer(), ilObjPaymentSettingsGUI\addCustomerObject(), ilPaymentShoppingCart\getShoppingCart(), and ilShopShoppingCartGUI\showItems().
|
static |
Definition at line 158 of file class.ilPaymentPrices.php.
References ilPaymentSettings\_getInstance().
|
static |
Definition at line 173 of file class.ilPaymentPrices.php.
References $price, and _getPrice().
Referenced by ilPaymentShoppingCart\__read().
|
static |
Definition at line 354 of file class.ilPaymentPrices.php.
Referenced by ilPaymentShoppingCart\__read().
ilPaymentPrices::add | ( | ) |
Definition at line 231 of file class.ilPaymentPrices.php.
References $res, __getCurrency(), __getDescription(), __getDuration(), __getDurationFrom(), __getDurationUntil(), __getPrice(), __getUnlimitedDuration(), __read(), getExtension(), getPobjectId(), and getPriceType().
ilPaymentPrices::delete | ( | $a_price_id | ) |
Definition at line 272 of file class.ilPaymentPrices.php.
References __read().
ilPaymentPrices::deleteAllPrices | ( | ) |
Definition at line 283 of file class.ilPaymentPrices.php.
References __read(), and getPobjectId().
ilPaymentPrices::getExtension | ( | ) |
Definition at line 225 of file class.ilPaymentPrices.php.
References $extension.
Referenced by add(), and update().
ilPaymentPrices::getExtensionPrices | ( | ) |
Definition at line 431 of file class.ilPaymentPrices.php.
References $prices, $res, $row, and getPobjectId().
ilPaymentPrices::getLowestPrice | ( | ) |
Definition at line 465 of file class.ilPaymentPrices.php.
Referenced by ilShopResultPresentationGUI\renderItems().
ilPaymentPrices::getNumberOfPrices | ( | ) |
Definition at line 460 of file class.ilPaymentPrices.php.
ilPaymentPrices::getPobjectId | ( | ) |
Definition at line 58 of file class.ilPaymentPrices.php.
References $pobject_id.
Referenced by __read(), add(), deleteAllPrices(), getExtensionPrices(), and update().
ilPaymentPrices::getPrice | ( | $a_price_id | ) |
Definition at line 67 of file class.ilPaymentPrices.php.
ilPaymentPrices::getPrices | ( | ) |
Definition at line 63 of file class.ilPaymentPrices.php.
ilPaymentPrices::getPriceType | ( | ) |
Definition at line 51 of file class.ilPaymentPrices.php.
References $price_type.
Referenced by add(), update(), and validate().
ilPaymentPrices::setCurrency | ( | $a_currency_id | ) |
Definition at line 199 of file class.ilPaymentPrices.php.
ilPaymentPrices::setDescription | ( | $a_description | ) |
Definition at line 496 of file class.ilPaymentPrices.php.
ilPaymentPrices::setDuration | ( | $a_duration | ) |
Definition at line 203 of file class.ilPaymentPrices.php.
ilPaymentPrices::setDurationFrom | ( | $a_duration_from | ) |
Definition at line 485 of file class.ilPaymentPrices.php.
ilPaymentPrices::setDurationUntil | ( | $a_duration_until | ) |
Definition at line 491 of file class.ilPaymentPrices.php.
ilPaymentPrices::setExtension | ( | $a_extension | ) |
Definition at line 220 of file class.ilPaymentPrices.php.
ilPaymentPrices::setPrice | ( | $a_price = 0 | ) |
Definition at line 193 of file class.ilPaymentPrices.php.
ilPaymentPrices::setPriceType | ( | $a_price_type | ) |
Definition at line 44 of file class.ilPaymentPrices.php.
ilPaymentPrices::setUnlimitedDuration | ( | $a_unlimited_duration | ) |
Definition at line 211 of file class.ilPaymentPrices.php.
ilPaymentPrices::update | ( | $a_price_id | ) |
Definition at line 252 of file class.ilPaymentPrices.php.
References __getCurrency(), __getDescription(), __getDuration(), __getDurationFrom(), __getDurationUntil(), __getPrice(), __getUnlimitedDuration(), __read(), getExtension(), getPobjectId(), and getPriceType().
ilPaymentPrices::validate | ( | ) |
Validates a price before database manipulations.
public
ilShopException |
Definition at line 302 of file class.ilPaymentPrices.php.
References $lng, __getDuration(), __getDurationFrom(), __getDurationUntil(), __getPrice(), and getPriceType().
|
private |
Definition at line 21 of file class.ilPaymentPrices.php.
Referenced by __getCurrency().
|
private |
Definition at line 28 of file class.ilPaymentPrices.php.
Referenced by __getDescription().
|
private |
Definition at line 22 of file class.ilPaymentPrices.php.
Referenced by __getDuration().
|
private |
Definition at line 26 of file class.ilPaymentPrices.php.
Referenced by __getDurationFrom().
|
private |
Definition at line 27 of file class.ilPaymentPrices.php.
Referenced by __getDurationUntil().
|
private |
Definition at line 24 of file class.ilPaymentPrices.php.
Referenced by getExtension().
|
private |
Definition at line 18 of file class.ilPaymentPrices.php.
Referenced by getPobjectId().
|
private |
Definition at line 20 of file class.ilPaymentPrices.php.
Referenced by __getPrice(), _getPrice(), _getPriceString(), and _getTotalAmount().
ilPaymentPrices::$price_type = self::TYPE_DURATION_MONTH |
Definition at line 29 of file class.ilPaymentPrices.php.
Referenced by getPriceType().
|
private |
Definition at line 31 of file class.ilPaymentPrices.php.
Referenced by getExtensionPrices().
|
private |
Definition at line 23 of file class.ilPaymentPrices.php.
Referenced by __getUnlimitedDuration().
const ilPaymentPrices::TYPE_DURATION_DATE = 2 |
Definition at line 15 of file class.ilPaymentPrices.php.
Referenced by ilPurchaseBaseGUI\__addBookings(), ilPurchaseBaseGUI\__showShoppingCart(), ilPaymentBookings\add(), ilShopShoppingCartGUI\addBookings(), ilPaymentStatisticGUI\addCustomer(), ilObjPaymentSettingsGUI\addCustomerObject(), ilObjPaymentSettingsGUI\editPriceObject(), ilPaymentObjectGUI\performAddPrice(), ilObjPaymentSettingsGUI\performAddPriceObject(), ilObjPaymentSettingsGUI\saveCustomerObject(), ilShopPurchaseGUI\showDetails(), ilShopShoppingCartGUI\showItems(), ilPaymentObjectGUI\updatePrice(), and ilObjPaymentSettingsGUI\updatePriceObject().
const ilPaymentPrices::TYPE_DURATION_MONTH = 1 |
Definition at line 14 of file class.ilPaymentPrices.php.
Referenced by ilPurchaseBaseGUI\__addBookings(), ilPurchaseBaseGUI\__showShoppingCart(), ilPaymentBookings\add(), ilShopShoppingCartGUI\addBookings(), ilPaymentStatisticGUI\addCustomer(), ilObjPaymentSettingsGUI\addCustomerObject(), ilObjPaymentSettingsGUI\editPriceObject(), ilPaymentObjectGUI\performAddPrice(), ilObjPaymentSettingsGUI\performAddPriceObject(), ilObjPaymentSettingsGUI\saveCustomerObject(), ilShopPurchaseGUI\showDetails(), ilShopShoppingCartGUI\showItems(), ilPaymentObjectGUI\updatePrice(), and ilObjPaymentSettingsGUI\updatePriceObject().
const ilPaymentPrices::TYPE_UNLIMITED_DURATION = 3 |
Definition at line 16 of file class.ilPaymentPrices.php.
Referenced by ilPurchaseBaseGUI\__addBookings(), ilPurchaseBaseGUI\__showShoppingCart(), ilPaymentBookings\add(), ilShopShoppingCartGUI\addBookings(), ilPaymentStatisticGUI\addCustomer(), ilObjPaymentSettingsGUI\addCustomerObject(), ilObjPaymentSettingsGUI\editPriceObject(), ilPaymentObjectGUI\performAddPrice(), ilObjPaymentSettingsGUI\performAddPriceObject(), ilObjPaymentSettingsGUI\saveCustomerObject(), ilShopPurchaseGUI\showDetails(), ilShopShoppingCartGUI\showItems(), ilPaymentObjectGUI\updatePrice(), and ilObjPaymentSettingsGUI\updatePriceObject().