/** * 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); }
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 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); }
function render() { $config =& Config::getConfig(); $this->setValue("blogname", StringUtils::text2url($this->_blogInfo->getBlog())); $this->setValue("requestformat", $config->getValue("request_format_mode")); $this->setValue("baseurl", $config->getValue("base_url")); $this->setValue("htmlarea", $config->getValue("htmlarea_enabled")); $destination = $this->getValue("destination"); $this->_pagerUrl = "?op=resourceList&&mode={$destination}&page="; parent::render(); }
function render() { $this->_pagerUrl = "?op=userPictureSelect&page="; parent::render(); }