13 if(!isset(self::$_instance))
31 $res = $this->db->query(
'SELECT * FROM payment_settings');
33 $this->setting = array();
34 while(
$row = $this->db->fetchAssoc(
$res))
36 $this->setting[
$row[
"keyword"]] = $row[
"value"];
45 public function get($a_key)
47 return $this->setting[$a_key];
54 $res = $ilDB->queryF(
'
55 SELECT * FROM payment_settings
57 array(
'text'), array($a_scope));
60 while(
$row = $this->db->fetchAssoc(
$res))
62 $settings[
$row[
"keyword"]] = $row[
"value"];
75 public function set($a_key, $a_val, $a_scope = null)
82 $res = $ilDB->queryF(
'
83 SELECT scope FROM payment_settings
85 array(
'text'), array($a_key));
88 $a_scope =
$row[
'scope'];
94 $ilDB->insert(
"payment_settings", array(
95 "keyword" => array(
"text", $a_key),
96 "value" => array(
"clob", $a_val),
97 "scope" => array(
"text", $a_scope)));
99 self::$_instance->setting[$a_key] = $a_val;
104 public function delete($a_key)
109 DELETE FROM payment_settings
111 array(
'text'), array($a_key));
116 if(!isset(self::$_instance))
121 return self::$_instance->setting[
'shop_enabled'];
125 self::set(
'mail_use_placeholders',$a_mail_use_placeholders);
130 if(!isset(self::$_instance))
135 return self::$_instance->setting[
'mail_use_placeholders'];
140 self::set(
'mail_billing_text',$a_mail_billing_text);
145 if(!isset(self::$_instance))
150 return self::$_instance->setting[
'mail_billing_text'];
156 if(!isset(self::$_instance))
161 return self::$_instance->setting[
'use_shop_specials'];