/**
  * Constructor. If nothing else, it also has to call the constructor of the parent
  * class, BlogAction with the same parameters
  */
 function AdminAddPostAction($actionInfo, $request)
 {
     $this->AdminPostManagementCommonAction($actionInfo, $request);
     // for data validation purposes, posts must have at least a topic, an intro text, and a category
     $this->registerFieldValidator("postText", new StringValidator());
     $this->registerFieldValidator("postTopic", new StringValidator());
     $this->registerFieldValidator("postCategories", new ArrayValidator());
     $view = new AdminNewPostView($this->_blogInfo);
     $view->setErrorMessage($this->_locale->tr("error_adding_post"));
     $this->setValidationErrorView($view);
     // these fields do not need to be validated but should be there when we show the view once again
     $this->registerField("postExtendedText");
     $this->registerField("postSlug");
     $this->registerField("postStatus");
     $this->registerField("sendNotification");
     $this->registerField("sendTrackbacks");
     $this->registerField("sendPings");
     $this->registerField("postId");
     $this->registerField("commentsEnabled");
     $this->registerField("customField");
     $this->registerField("postDateTime");
     $this->registerField("trackbackUrls");
 }