/**
  * Constructor. If nothing else, it also has to call the constructor of the parent
  * class, BlogAction with the same parameters
  */
 function AdminEditArticleCategoryAction($actionInfo, $request)
 {
     $this->AdminAction($actionInfo, $request);
     // stuff for the data validation
     $this->registerFieldValidator("categoryId", new IntegerValidator());
     $this->_form->registerField("categoryName");
     $this->_form->registerField("categoryDescription");
     $errorView = new AdminArticleCategoriesListView($this->_blogInfo);
     $errorView->setErrorMessage($this->_locale->tr("error_incorrect_category_id"));
     $this->setValidationErrorView($errorView);
 }
 /**
  * Constructor. If nothing else, it also has to call the constructor of the parent
  * class, BlogAction with the same parameters
  */
 function AdminDeleteArticleCategoryAction($actionInfo, $request)
 {
     $this->AdminAction($actionInfo, $request);
     $this->_mode = $actionInfo->getActionParamValue();
     // get the array that contains the categories we'd like to delete
     if ($this->_mode == "deleteArticleCategory") {
         $this->registerFieldValidator("categoryId", new IntegerValidator());
     } else {
         $this->registerFieldValidator("categoryIds", new ArrayValidator());
     }
     $view = new AdminArticleCategoriesListView($this->_blogInfo);
     $view->setErrorMessage($this->_locale->tr("error_incorrect_category_id"));
     $this->setValidationErrorView($view);
 }