NewsFeaturesDownloadsDevelopmentSupportAbout Us

AdminEditCommentsAction Class Reference
[Action]

Inherits AdminAction.

Inherited by AdminEditTrackbacksAction.

List of all members.


Public Member Functions

 AdminEditCommentsAction ($actionInfo, $request)
 validate ()
 perform ()
 _getView ($articleId, $showStatus, $searchTerms)

Detailed Description

Action that shows a list of all the comments or trackbacks for a given post

Definition at line 15 of file admineditcommentsaction.class.php.


Member Function Documentation

AdminEditCommentsAction.AdminEditCommentsAction ( actionInfo,
request 
)

Constructor. If nothing else, it also has to call the constructor of the parent class, BlogAction with the same parameters

Definition at line 22 of file admineditcommentsaction.class.php.

References $request, AdminAction.AdminAction(), Action.registerFieldValidator(), and AdminAction.requirePermission().

Referenced by AdminEditTrackbacksAction.AdminEditTrackbacksAction().

AdminEditCommentsAction.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.

Returns:
Returns true if data is correct or false otherwise. See above for more details.

Reimplemented from Action.

Definition at line 38 of file admineditcommentsaction.class.php.

References _getView(), and Action.setValidationErrorView().

AdminEditCommentsAction.perform (  ) 

Carries out the specified action

Reimplemented from Action.

Definition at line 50 of file admineditcommentsaction.class.php.

References $articleId, _getView(), and AdminAction.setCommonData().

AdminEditCommentsAction._getView ( articleId,
showStatus,
searchTerms 
)

Get the correct view of this action

Definition at line 67 of file admineditcommentsaction.class.php.

References $articleId, and $articles.

Referenced by perform(), and validate().