| Method Signature || Explanation
|Returns the name of the plugin. This will be the name that will show up on the list of installed plugins. You should definately redefine this method, since the default implementation returns Undefined
|Returns the name of author of the plugin. This name will show up on the list of installed plugins. You should definately redefine this method, since the default implementation returns Undefined
|Returns the URL of the site where the plugin can be downloaded, or where additional information about the plugin can be found. If no such site exists, a
mailto:-link with the authors email address is appropriate. You should definately redefine this method, since the default implementation returns Undefined
|Returns a longer description of the plugin. This will show up on the list of installed plugins. The default implementation returns Undefined
|Returns the current version of the plugin. Returns 0.0 by default
|(v2.0b) Returns the minimum required Nucleus version. By default, this returns
155 (v1.55). If you are using plugin features that were introduced later, please implement this function (e.g. v2.0 ⇒ 200). Please note that Nucleus v1.55 does not use this function at all, so it remains possible to install newer plugins there, even if they use newer features.
|(v3.1) Returns the minimum required Nucleus patch level that needs to be present when running the minimal required Nucleus version (
getMinNucleusVersion). By default, this returns
0. This function is generally used when new plugin features are available only as patches to the latest released Nucleus version.
|Initializes the plugin. This method gets called immediately after the plugin object is created and the
plugid-attribute has been set. By default, this method does nothing.
|When plugins are called using the
<%plugin(…)%>-skinvar, this method will be called. the
$skinType parameter contains the type of skin (
archive, …) from where the plugin is called. Don't get confused by the fact that there's only one parameter. Multiple parameters can still be passed. More info on implementing the doSkinVar method. By default, this method does no output at all.
|Basically the same as
doSkinVar, but this time for calls of the <%plugin(…)%>-var in templates (item header/body/footer and dateheader/footer). By default, this method forwards the handling to the
template as skintype. More information on implementing the doTemplateVar method
|(v2.0b) Basically the same as
doSkinVar, but this time for calls of the <%plugin(…)%>-var in templates (comments-related parts). By default, this method forwards the handling to the
template as skintype. More information on implementing the doTemplateCommentsVar method
|When a plugin wants to allow user interaction, it can allow actions through
action.php. This is the script that Nucleus uses itself to handle new comments and karma votes. Called with the correct parameters, the
doAction-method from a plugin can be called. The
$type contains an optional message type. Extra variables from the request can be accessed from within the
doAction method. By default, this method returns a string No Such Action which will trigger an error message. More info on doAction.
|This method gets called on the moment the plugin is installed. It can perform initializing actions, such as the creation of database tables, the creation of plugin options, etc… By default, this method does nothing.
|Called when the plugin is uninstalled. It's a good thing to clean up information your plugin created in the database at this point. By default, this method does nothing.
|Plugins can subscribe to events. Events get generated whenever Nucleus performs a certain action. An
AddItem event for example, will call all plugins that subscribed to this event. The called method will be
$params-parameter is an associative array containing several fields of information, like the itemid for
AddItem. Returns an empty array by default, indicating that the plugin does not subscribe to any event at all. More information about events.
|This method should return an array of database tables that the plugin has created. It's used in the backup feature that Nucleus offers, so plugin tables are also included in the backup. By default, returns an empty array.
1 if the plugin has an admin area of its own, and
0 if it doesn't. By default,
0 is returned.
|(v3.2) Returns an array of plugin names. Nucleus refuses to install the plugin if any of these plugins is not installed. By default, an empty array is returned. More information on plugin dependencies.