37 $query =
"SELECT * FROM payment_currencies ";
38 $res = $ilDB->query($query);
42 $currencies[$row->currency_id][
'currency_id'] = $row->currency_id;
43 $currencies[$row->currency_id][
'unit'] = $row->unit;
44 $currencies[$row->currency_id][
'subunit'] = $row->subunit;
46 return $currencies ? $currencies : array();
52 $query =
"SELECT * FROM payment_currencies ".
53 "WHERE currency_id = '".$a_currency_id.
"'";
55 $res = $ilDB->query($query);
58 $currencies[
'currency_id'] = $row->currency_id;
59 $currencies[
'unit'] = $row->unit;
60 $currencies[
'sub_unit'] = $row->subunit;
68 $query =
"SELECT unit FROM payment_currencies ".
69 "WHERE currency_id = '".$a_currency_id.
"'";
71 $res = $ilDB->query($query);
82 $query =
"SELECT subunit FROM payment_currencies ".
83 "WHERE currency_id = '".$a_currency_id.
"'";
85 $res = $ilDB->query($query);