/**
  * Constructor. If nothing else, it also has to call the constructor of the parent
  * class, BlogAction with the same parameters
  */
 function AdminEditLinkAction($actionInfo, $request)
 {
     $this->AdminAction($actionInfo, $request);
     // data validation stuff
     $this->registerFieldValidator("linkId", new IntegerValidator());
     // we need to register the other fields or else the form validation will complain
     $this->_form->registerField("linkDescription");
     $this->_form->registerField("linkName");
     $this->_form->registerField("linkRssFeed");
     $this->_form->registerField("linkUrl");
     $view = new AdminLinksListView($this->_blogInfo);
     $view->setErrorMessage($this->_locale->tr("error_fetching_link"));
     $this->setValidationErrorView($view);
 }
 /**
  * Constructor. If nothing else, it also has to call the constructor of the parent
  * class, BlogAction with the same parameters
  */
 function AdminDeleteLinkAction($actionInfo, $request)
 {
     $this->AdminAction($actionInfo, $request);
     $this->_op = $actionInfo->getActionParamValue();
     $view = new AdminLinksListView($this->_blogInfo);
     if ($this->_op == "deleteLink") {
         $this->registerFieldValidator("linkId", new IntegerValidator());
         $view->setErrorMessage($this->_locale->tr("error_incorrect_link_id"));
     } else {
         $this->registerFieldValidator("linkIds", new ArrayValidator());
         $view->setErrorMessage($this->_locale->tr("error_no_links_selected"));
     }
     $this->setValidationErrorView($view);
 }