NewsFeaturesDownloadsDevelopmentSupportAbout Us

AdminAddPostAction Class Reference
[Action]

Inherits AdminPostManagementCommonAction.

List of all members.


Public Member Functions

 AdminAddPostAction ($actionInfo, $request)
 perform ()
 clearAutoSaveCookie ()

Private Member Functions

 validate ()
 _savePostData ($article)

Detailed Description

Action that adds a new post to the database.

Definition at line 17 of file adminaddpostaction.class.php.


Member Function Documentation

AdminAddPostAction._savePostData ( article  )  [private]

returns the id of the post or 'false' if it couldn't be saved

Definition at line 69 of file adminaddpostaction.class.php.

References $articles, AdminPostManagementCommonAction._getArticleCustomFields(), and AdminAction.notifyEvent().

Referenced by perform().

AdminAddPostAction.AdminAddPostAction ( 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 23 of file adminaddpostaction.class.php.

References $request, AdminPostManagementCommonAction.AdminPostManagementCommonAction(), Action.registerField(), Action.registerFieldValidator(), and Action.setValidationErrorView().

AdminAddPostAction.clearAutoSaveCookie (  ) 

Definition at line 230 of file adminaddpostaction.class.php.

References $rg.

Referenced by perform(), and validate().

AdminAddPostAction.perform (  ) 

AdminAddPostAction.validate (  )  [private]

If the form is not validate, we need to clean the autosave cookie

Reimplemented from Action.

Definition at line 55 of file adminaddpostaction.class.php.

References clearAutoSaveCookie().