full 'listen' prefs management completed and partial 'comps' prefs implemented
[brisk.git] / web / Obj / dbase_base.phh
index 25c36d5..d7d8068 100644 (file)
@@ -116,6 +116,20 @@ class LoginDBItem {
         return ($ret_arr);
     }
 
+    function supp_comp_set_array($supp_comp_in)
+    {
+        $group_id = array("fg", "bg");
+        $comp_id = array("r", "g", "b");
+        $supp_comp = "";
+
+        for ($i = 0 ; $i < 2 ; $i++) {
+            for ($e = 0 ; $e < 3 ; $e++) {
+                $supp_comp += sprintf("%02x", $supp_comp_in[$group_id[$i]][$comp_id[$e]]);
+            }
+        }
+        $this->supp_comp = $supp_comp;
+    }
+
     function supp_comp_set($supp_comp)
     {
         $this->supp_comp = $supp_comp;