function AdminRegeneratePreviewAction($actionInfo, $request)
 {
     $this->AdminAction($actionInfo, $request);
     $this->registerFieldValidator("resourceId", new IntegerValidator());
     $view = new AdminResourcesListView($this->_blogInfo);
     $view->setErrorMessage($this->_locale->tr("error_loading_resource"));
     $this->setValidationErrorView($view);
 }
 /**
  * Constructor. If nothing else, it also has to call the constructor of the parent
  * class, BlogAction with the same parameters
  */
 function AdminEditResourceAlbumAction($actionInfo, $request)
 {
     $this->AdminAction($actionInfo, $request);
     $this->registerFieldValidator("albumId", new IntegerValidator());
     $view = new AdminResourcesListView($this->_blogInfo);
     $view->setErrorMessage($this->_locale->tr("error_incorrect_album_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 AdminDeleteResourceAction($actionInfo, $request)
 {
     $this->AdminAction($actionInfo, $request);
     // data validation
     $this->registerFieldValidator("resourceId", new IntegerValidator());
     $view = new AdminResourcesListView($this->_blogInfo);
     $view->setErrorMessage($this->_locale->tr("error_no_resources_selected"));
     $this->setValidationErrorView($view);
 }
 /**
  * Constructor. If nothing else, it also has to call the constructor of the parent
  * class, BlogAction with the same parameters
  */
 function AdminDeleteGalleryItemsAction($actionInfo, $request)
 {
     $this->AdminAction($actionInfo, $request);
     $this->_totalOk = 0;
     $this->_successMessage = "";
     $this->_errorMessage = "";
     // data validation
     $this->registerFieldValidator("resourceIds", new ArrayValidator(), true);
     $this->registerFieldValidator("albumIds", new ArrayValidator(), true);
     $view = new AdminResourcesListView($this->_blogInfo);
     $view->setErrorMessage($this->_locale->tr("error_no_resources_selected"));
     $this->setValidationErrorView($view);
 }