====== cPlugin ======
cPlugin describes a Lua plugin. This page is dedicated to new-style plugins and contain their functions.
===== Class Definition =====
^ Function ^ Return type ^
| GetName**()** | String |
| SetName**(** String **)** | void |
| GetVersion**()** | int |
| SetVersion**(** int **)** | void |
| GetFileName**()** | String |
| CreateWebPlugin**()** | [[cWebPlugin]] |
Hooks
{{page>api:plugin:hooks#hooks&noheader&noeditbtn}}
===== Functions =====
==== GetName() and SetName() ====
Gets/sets plugin name.
==== GetVersion() and SetVersion() ====
Gets/sets plugin version. Must be an int! (e.g. no "1.1" allowed)
==== GetFileName() ====
Returns a plugin's filename.
==== CreateWebPlugin() ====
Creates a [[cWebPlugin]] instance.