Public Member Functions | |
| _getAvailableCurrencies () | |
| _getCurrency ($a_currency_id) | |
| _getUnit ($a_currency_id) | |
| _getSubUnit ($a_currency_id) | |
Definition at line 31 of file class.ilPaymentCurrency.php.
| ilPaymentCurrency::_getAvailableCurrencies | ( | ) |
Definition at line 33 of file class.ilPaymentCurrency.php.
References $query, $res, and $row.
Referenced by ilPaymentObjectGUI::performAddPrice().
{
global $ilDB;
$query = "SELECT * FROM payment_currencies ";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$currencies[$row->currency_id]['currency_id'] = $row->currency_id;
$currencies[$row->currency_id]['unit'] = $row->unit;
$currencies[$row->currency_id]['subunit'] = $row->subunit;
}
return $currencies ? $currencies : array();
}
Here is the caller graph for this function:| ilPaymentCurrency::_getCurrency | ( | $ | a_currency_id | ) |
Definition at line 48 of file class.ilPaymentCurrency.php.
References $query, $res, and $row.
Referenced by ilPaymentObjectGUI::editPrices().
{
global $ilDB;
$query = "SELECT * FROM payment_currencies ".
"WHERE currency_id = '".$a_currency_id."'";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$currencies['currency_id'] = $row->currency_id;
$currencies['unit'] = $row->unit;
$currencies['sub_unit'] = $row->subunit;
}
return $currencies;
}
Here is the caller graph for this function:| ilPaymentCurrency::_getSubUnit | ( | $ | a_currency_id | ) |
Definition at line 78 of file class.ilPaymentCurrency.php.
| ilPaymentCurrency::_getUnit | ( | $ | a_currency_id | ) |
Definition at line 64 of file class.ilPaymentCurrency.php.
1.7.1