Public Member Functions | |
| AdminDoRegisterBlogAction ($actionInfo, $request) | |
| validate () | |
| perform () | |
Definition at line 19 of file admindoregisterblogaction.class.php.
| AdminDoRegisterBlogAction.AdminDoRegisterBlogAction | ( | $ | actionInfo, | |
| $ | request | |||
| ) |
Definition at line 22 of file admindoregisterblogaction.class.php.
References $request, AdminAction.AdminAction(), Subdomains.getSubdomainsEnabled(), Action.registerFieldValidator(), and Action.setValidationErrorView().
| AdminDoRegisterBlogAction.validate | ( | ) |
This method can be used for data validation and is always executed before perform(). If it returns 'true', execution will continue as normal. If it returns 'false', the process will be stopped and the current contents of the view will be returned. If the view is empty, an exception will be thrown.
As of pLog 1.0, it is not necessary to implement data validation code here and it is recommended to use the data validation framework (see methods Action.registerFieldValidator() and related) There is more information about the data validation framework in the wiki: http://wiki.plogworld.net/index.php/PLog_1.0/Forms_and_data_validation.
With the default code provided in the Action.validate() method, the callback method Action.validationErrorProcessing() will be called and after that, the view set via the Action.setValidationErrorView() will be used to generate the contents of the error message.
Reimplemented from Action.
Definition at line 42 of file admindoregisterblogaction.class.php.
References AdminAction.setCommonData().
| AdminDoRegisterBlogAction.perform | ( | ) |
Receives the HTTP request from the client as parameter, so that we can extract the parameters and perform our business logic.
The result of this will be a view, which will normally be the output of the processing we just did or for example an error view showing an error message. Once we have completed processing, the controller will call the getView() method to get the resulting view and send it back to the customer.
Reimplemented from Action.
Definition at line 63 of file admindoregisterblogaction.class.php.
References $articles, $blog, $blogs, $catId, $users, Locales.getLocale(), Subdomains.getSubdomainsEnabled(), Subdomains.isDomainAvailable(), Subdomains.isValidDomainName(), lt_include(), AdminAction.saveSession(), and AdminAction.setCommonData().