function AdminUserProfileAction($actionInfo, $request) { $this->SiteAdminAction($actionInfo, $request); // data validation $this->registerFieldValidator("userId", new IntegerValidator()); $view = new AdminSiteUsersListView($this->_blogInfo); $view->setErrorMessage($this->_locale->tr("error_invalid_user")); $this->setValidationErrorView($view); }
function AdminDeleteUsersAction($actionInfo, $request) { $this->SiteAdminAction($actionInfo, $request); // set up the data validation stuff $this->_op = $actionInfo->getActionParamValue(); if ($this->_op == "deleteUsers") { $this->registerFieldvalidator("userIds", new ArrayValidator()); } else { $this->registerFieldValidator("userId", new IntegerValidator()); } $view = new AdminSiteUsersListView($this->_blogInfo); $view->setErrorMessage($this->_locale->tr("error_no_users_selected")); $this->setValidationErrorView($view); }