/** Edit a quote
  * @access public
  * @return void
  */
 public function editAction()
 {
     if ($this->getParam('id', false)) {
         $form = new QuoteForm();
         $form->details->setLegend('Edit quote/announcement details');
         $form->submit->setLabel('Submit changes');
         $this->view->form = $form;
         if ($this->getRequest()->isPost()) {
             if ($form->isValid($this->_request->getPost())) {
                 $where = array();
                 $where[] = $this->_quotes->getAdapter()->quoteInto('id = ?', $this->getParam('id'));
                 $this->_quotes->update($form->getValues(), $where);
                 $this->getFlash()->addMessage('Details updated!');
                 $this->redirect(self::REDIRECT);
             } else {
                 $form->populate($form->getValues());
             }
         } else {
             $form->populate($this->_quotes->fetchRow('id=' . $this->_request->getParam('id'))->toArray());
         }
     } else {
         throw new Pas_Exception_Param($this->_missingParameter, 500);
     }
 }