ILIAS
Release_4_4_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 | ) |
Definition at line 38 of file class.ilPaymentPrices.php.
References __read().
|
private |
Definition at line 391 of file class.ilPaymentPrices.php.
References $currency.
Referenced by add(), and update().
|
private |
Definition at line 527 of file class.ilPaymentPrices.php.
References $description.
Referenced by add(), and update().
|
private |
Definition at line 398 of file class.ilPaymentPrices.php.
References $duration.
Referenced by add(), update(), and validate().
|
private |
Definition at line 518 of file class.ilPaymentPrices.php.
References $duration_from.
Referenced by add(), update(), and validate().
|
private |
Definition at line 523 of file class.ilPaymentPrices.php.
References $duration_until.
Referenced by add(), update(), and validate().
|
private |
Definition at line 387 of file class.ilPaymentPrices.php.
References $price.
Referenced by add(), update(), and validate().
|
private |
Definition at line 402 of file class.ilPaymentPrices.php.
References $unlimited_duration.
Referenced by add(), and update().
|
private |
Definition at line 407 of file class.ilPaymentPrices.php.
References $res, $row, and getPobjectId().
Referenced by __construct(), add(), delete(), deleteAllPrices(), and update().
|
static |
|
static |
Definition at line 149 of file class.ilPaymentPrices.php.
References _getGUIPrice(), and ilPaymentSettings\_getInstance().
Referenced by ilShopResultPresentationGUI\renderItems(), and ilShopPurchaseGUI\showDetails().
|
static |
Definition at line 127 of file class.ilPaymentPrices.php.
References $lng.
Referenced by _formatPriceToString(), _getPriceString(), and ilShopShoppingCartGUI\showItems().
|
static |
Definition at line 79 of file class.ilPaymentPrices.php.
References $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 119 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 172 of file class.ilPaymentPrices.php.
References ilPaymentSettings\_getInstance().
|
static |
Definition at line 190 of file class.ilPaymentPrices.php.
References $price, and _getPrice().
Referenced by ilPaymentShoppingCart\__read().
|
static |
Definition at line 371 of file class.ilPaymentPrices.php.
References $res.
Referenced by ilPaymentShoppingCart\__read().
ilPaymentPrices::add | ( | ) |
Definition at line 248 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 289 of file class.ilPaymentPrices.php.
References __read().
ilPaymentPrices::deleteAllPrices | ( | ) |
Definition at line 300 of file class.ilPaymentPrices.php.
References __read(), and getPobjectId().
ilPaymentPrices::getExtension | ( | ) |
Definition at line 242 of file class.ilPaymentPrices.php.
References $extension.
Referenced by add(), and update().
ilPaymentPrices::getExtensionPrices | ( | ) |
Definition at line 448 of file class.ilPaymentPrices.php.
References $prices, $res, $row, and getPobjectId().
ilPaymentPrices::getLowestPrice | ( | ) |
Definition at line 482 of file class.ilPaymentPrices.php.
Referenced by ilShopResultPresentationGUI\renderItems().
ilPaymentPrices::getNumberOfPrices | ( | ) |
Definition at line 477 of file class.ilPaymentPrices.php.
ilPaymentPrices::getPobjectId | ( | ) |
Definition at line 63 of file class.ilPaymentPrices.php.
References $pobject_id.
Referenced by __read(), add(), deleteAllPrices(), getExtensionPrices(), and update().
ilPaymentPrices::getPrice | ( | $a_price_id | ) |
Definition at line 72 of file class.ilPaymentPrices.php.
ilPaymentPrices::getPrices | ( | ) |
Definition at line 68 of file class.ilPaymentPrices.php.
ilPaymentPrices::getPriceType | ( | ) |
Definition at line 56 of file class.ilPaymentPrices.php.
References $price_type.
Referenced by add(), update(), and validate().
ilPaymentPrices::setCurrency | ( | $a_currency_id | ) |
Definition at line 216 of file class.ilPaymentPrices.php.
ilPaymentPrices::setDescription | ( | $a_description | ) |
Definition at line 513 of file class.ilPaymentPrices.php.
ilPaymentPrices::setDuration | ( | $a_duration | ) |
Definition at line 220 of file class.ilPaymentPrices.php.
ilPaymentPrices::setDurationFrom | ( | $a_duration_from | ) |
Definition at line 502 of file class.ilPaymentPrices.php.
ilPaymentPrices::setDurationUntil | ( | $a_duration_until | ) |
Definition at line 508 of file class.ilPaymentPrices.php.
ilPaymentPrices::setExtension | ( | $a_extension | ) |
Definition at line 237 of file class.ilPaymentPrices.php.
ilPaymentPrices::setPrice | ( | $a_price = 0 | ) |
Definition at line 210 of file class.ilPaymentPrices.php.
ilPaymentPrices::setPriceType | ( | $a_price_type | ) |
Definition at line 49 of file class.ilPaymentPrices.php.
ilPaymentPrices::setUnlimitedDuration | ( | $a_unlimited_duration | ) |
Definition at line 228 of file class.ilPaymentPrices.php.
ilPaymentPrices::update | ( | $a_price_id | ) |
Definition at line 269 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 319 of file class.ilPaymentPrices.php.
References $lng, __getDuration(), __getDurationFrom(), __getDurationUntil(), __getPrice(), and getPriceType().
|
private |
Definition at line 22 of file class.ilPaymentPrices.php.
Referenced by __getCurrency().
|
private |
Definition at line 29 of file class.ilPaymentPrices.php.
Referenced by __getDescription().
|
private |
Definition at line 23 of file class.ilPaymentPrices.php.
Referenced by __getDuration().
|
private |
Definition at line 27 of file class.ilPaymentPrices.php.
Referenced by __getDurationFrom().
|
private |
Definition at line 28 of file class.ilPaymentPrices.php.
Referenced by __getDurationUntil().
|
private |
Definition at line 25 of file class.ilPaymentPrices.php.
Referenced by getExtension().
|
private |
Definition at line 19 of file class.ilPaymentPrices.php.
Referenced by getPobjectId().
|
private |
Definition at line 21 of file class.ilPaymentPrices.php.
Referenced by __getPrice(), _getPrice(), _getPriceString(), and _getTotalAmount().
ilPaymentPrices::$price_type = self::TYPE_DURATION_MONTH |
Definition at line 30 of file class.ilPaymentPrices.php.
Referenced by getPriceType().
|
private |
Definition at line 36 of file class.ilPaymentPrices.php.
Referenced by getExtensionPrices().
|
private |
Definition at line 24 of file class.ilPaymentPrices.php.
Referenced by __getUnlimitedDuration().
const ilPaymentPrices::TYPE_DURATION_DATE = 2 |
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().
const ilPaymentPrices::TYPE_DURATION_MONTH = 1 |
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_UNLIMITED_DURATION = 3 |
Definition at line 17 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().