X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fdbase_base.phh;h=25c36d54f470a7bd4ef363928ff1e27267646e10;hb=bddfecf27b05ebf105929f29ef23c26d3b258c3c;hp=66c998fe342c0fb999d2580dfd3706cc58d20f10;hpb=c75222f24ff3f47a664f20f5971048d58f20c492;p=brisk.git diff --git a/web/Obj/dbase_base.phh b/web/Obj/dbase_base.phh index 66c998f..25c36d5 100644 --- a/web/Obj/dbase_base.phh +++ b/web/Obj/dbase_base.phh @@ -98,6 +98,24 @@ class LoginDBItem { { return $this->supp_comp; } + function supp_comp_get_array() + { + $ret = array(); + $group_id = array("fg", "bg"); + $comp_id = array("r", "g", "b"); + $ret_arr = array(); + $supp_comp = $this->supp_comp; + + for ($i = 0 ; $i < 2 ; $i++) { + $group_cur = $group_id[$i]; + $ret_arr[$group_cur] = array(); + for ($e = 0 ; $e < 3 ; $e++) { + $ret_arr[$group_cur][$comp_id[$e]] = base_convert(substr($supp_comp, $i*6 + $e*2, 2), 16, 10); + } + } + return ($ret_arr); + } + function supp_comp_set($supp_comp) { $this->supp_comp = $supp_comp;