37 public static function _lookup($a_type, $a_setting, $a_user = 0, $a_block_id = 0)
41 $query =
"SELECT * FROM il_block_setting WHERE type = ".
42 $ilDB->quote($a_type).
" AND user = ".
43 $ilDB->quote($a_user).
" AND setting = ".
44 $ilDB->quote($a_setting).
" AND block_id = ".
45 $ilDB->quote($a_block_id);
46 $set = $ilDB->query($query);
61 public static function _write($a_type, $a_setting, $a_value, $a_user = 0, $a_block_id = 0)
65 $query =
"REPLACE INTO il_block_setting (type, user, setting, block_id, value) VALUES (".
66 $ilDB->quote($a_type).
", ".$ilDB->quote($a_user).
",".
67 $ilDB->quote($a_setting).
",".$ilDB->quote($a_block_id).
",".$ilDB->quote($a_value).
")";
79 if ($detail ===
false)
102 public static function _lookupNr($a_type, $a_user = 0, $a_block_id = 0)
113 public static function _writeNumber($a_type, $a_value, $a_user = 0, $a_block_id = 0)
122 public static function _lookupSide($a_type, $a_user = 0, $a_block_id = 0)
133 public static function _writeSide($a_type, $a_value, $a_user = 0, $a_block_id = 0)
148 $query =
"DELETE FROM il_block_setting WHERE user = ".
149 $ilDB->quote($a_user);
151 $ilDB->query($query);
165 $query =
"DELETE FROM il_block_setting WHERE block_id = ".
166 $ilDB->quote($a_block_id).
167 " AND type = ".$ilDB->quote($a_block_type);
169 $ilDB->query($query);