public function setSelectedValue($value) { if ($this->_items) { if ($value === null) { $this->clearSelection(); } else { if (($item = $this->_items->findItemByValue($value)) !== null) { $this->clearSelection(); $item->setSelected(true); } else { $this->clearSelection(); } } } $this->_cachedSelectedValue = $value; if ($this->getAdapter() instanceof IListControlAdapter) { $this->getAdapter()->setSelectedValue($value); } }