public function getSelectedValues() { $values = array(); if ($this->_items) { foreach ($this->_items as $item) { if ($item->getSelected()) { $values[] = $item->getValue(); } } } return $values; }