public function getFullRESTValue(Tracker_FormElement_Field $field) { $color = null; $decorators = $field->getDecorators(); if (!empty($decorators) && isset($decorators[$this->getId()])) { $decorator = $decorators[$this->getId()]; $color = array('r' => (int) $decorator->r, 'g' => (int) $decorator->g, 'b' => (int) $decorator->b); } return array('id' => $this->getId(), 'label' => $this->getLabel(), 'color' => $color); }