/**
  * Save a decorator
  */
 public static function save($field_id, $value_id, $hexacolor)
 {
     $dao = new Tracker_FormElement_Field_List_BindDecoratorDao();
     list($r, $g, $b) = ColorHelper::HexaToRGB($hexacolor);
     $dao->save($field_id, $value_id, $r, $g, $b);
 }
コード例 #2
0
 function testHexaToRGB()
 {
     foreach ($this->colorSet as $hexa => $rgb) {
         $this->assertEqual(array($rgb[0], $rgb[1], $rgb[2]), ColorHelper::HexaToRGB($hexa));
     }
 }