protected function getSelection($control) { $values = array(); //get the data foreach ($control->getItems() as $item) { if ($item->getSelected()) { $values[] = $item->getValue(); } } return $values; }