/**
  * Constructor. If nothing else, it also has to call the constructor of the parent
  * class, BlogAction with the same parameters
  */
 function AdminEditBlogBlockedHostAction($actionInfo, $request)
 {
     $this->BlogOwnerAdminAction($actionInfo, $request);
     // data validation stuff
     $this->registerFieldValidator("hostId", new IntegerValidator());
     $view = new AdminBlogBlockedHostsView($this->_blogInfo);
     $view->setErrorMessage($this->_locale->tr("error_incorrect_host_id"));
     $this->setValidationErrorView($view);
 }
 /**
  * Constructor. If nothing else, it also has to call the constructor of the parent
  * class, BlogAction with the same parameters
  */
 function AdminDeleteBlogBlockedHostAction($actionInfo, $request)
 {
     $this->BlogOwnerAdminAction($actionInfo, $request);
     $this->_op = $actionInfo->getActionParamValue();
     $view = new AdminBlogBlockedHostsView($this->_blogInfo);
     if ($this->_op == "deleteBlogBlockedHost") {
         $this->registerFieldValidator("hostId", new IntegerValidator());
         $view->setErrorMessage($this->_locale->tr("error_incorrect_host_id"));
     } else {
         $this->registerFieldValidator("deleteBlogBlockedHost", new ArrayValidator());
         $view->setErrorMessage($this->_locale->tr("error_no_block_host_selected"));
     }
     $this->setValidationErrorView($view);
 }