NewsFeaturesDownloadsDevelopmentSupportAbout Us

AdminCleanupAction Class Reference
[Action]

Inherits AdminAction.

List of all members.


Public Member Functions

 AdminCleanupAction ($actionInfo, $request)
 cleanupPosts ()
 cleanupUsers ()
 cleanupBlogs ()
 cleanupComments ()
 cleanupTemp ()
 perform ()

Public Attributes

 $_message
 $_op
 $_continue
 $_url

Detailed Description

Action that shows a form to change the settings of the current blog.

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


Member Function Documentation

AdminCleanupAction.AdminCleanupAction ( actionInfo,
request 
)

AdminCleanupAction.cleanupPosts (  ) 

cleans up posts. Returns true if successful or false otherwise

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

References $result, and lt_include().

Referenced by perform().

AdminCleanupAction.cleanupUsers (  ) 

cleans up users. Returns true if successful or false otherwise

Definition at line 78 of file admincleanupaction.class.php.

References $result, and lt_include().

Referenced by perform().

AdminCleanupAction.cleanupBlogs (  ) 

cleans up blogs. Returns true if successful or false otherwise

Definition at line 106 of file admincleanupaction.class.php.

References $result, and lt_include().

Referenced by perform().

AdminCleanupAction.cleanupComments (  ) 

cleans up spam comments. Returns true if successful or false otherwise

Definition at line 135 of file admincleanupaction.class.php.

References $result, and lt_include().

Referenced by perform().

AdminCleanupAction.cleanupTemp (  ) 

cleans up temp directory, excluding .htaccess and the .svn directory

Returns:
Returns true

Definition at line 165 of file admincleanupaction.class.php.

References $blogs, $config, File.deleteDir(), Config.getConfig(), and lt_include().

Referenced by perform().

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

Returns:
Returns nothing

Reimplemented from Action.

Definition at line 196 of file admincleanupaction.class.php.

References $result, cleanupBlogs(), cleanupComments(), cleanupPosts(), cleanupTemp(), cleanupUsers(), lt_include(), CacheControl.resetSummaryCache(), and AdminAction.setCommonData().


Member Data Documentation

AdminCleanupAction.$_message

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

AdminCleanupAction.$_op

Definition at line 18 of file admincleanupaction.class.php.

AdminCleanupAction.$_continue

Definition at line 19 of file admincleanupaction.class.php.

AdminCleanupAction.$_url

Definition at line 20 of file admincleanupaction.class.php.