/** * Add list items to the array */ public function toArray() { $arr = parent::toArray(); $arr['items'] = array(); foreach ($this->items as $i) { $arr['items'][] = array('value' => $i->getValue(), 'label' => $i->getLabel()); } return $arr; }
/** * Add list items to the array */ public function toArray() { $arr = parent::toArray(); $arr['items'] = array(); foreach ($this->items as $i) { $arr['items'][] = array('value' => $i->getValue(), 'label' => $i->getLabel()); } return $arr; }