PluginHooks:CleanupPlugin

From StatusNet
Jump to: navigation, search

[edit] Description

Can be used to cleanup before the execution exits the plugin code.

[edit] Related Code

File: /lib/plugin.php
Class: Plugin (The parent of all plugin classes)
Code: mainline

[edit] Example

class ExamplePlugin extends Plugin {
    onCleanupPlugin() {
        unlink("/tmp/plugindata.txt");
          // Removes a temporary file
    }
}
Personal tools
Namespaces
Variants
Actions
Navigation
Status.net
Toolbox