Skip to content

Plugin structure

Aurélien LEQUOY edited this page Jun 4, 2019 · 20 revisions

Plugin construction

If you want to add a plugin to PMAControl you have to submit a plugin to 68koncept.

A plugin is a zip archive named "v1.2.zip" where 1.2 is the version of the plugin.

The plugin will be put in the name of the plugin directory.

The first level of the archive must be composed of a directory named "PluginName-VersionNumber" in this form : Name-1.2

In this directory you have this structure :

  • Name-1.2
    • controller
      • Name.controller.php
    • Library
      • YourLibrary.php (if needed)
    • sql
      • install.sql
      • uninstall.sql
      • update.sql
    • view
      • Name
        • index.view.php
        • edit.view.php
        • delete.view.php
    • image.jpg or image.png
    • install.php
    • uninstall.php
    • upgrade.php

L'arborescence des répertoires controller et view est similaire à celui de votre PmaControl les fichiers

Actually the update section is not expanded.

Plugin available scenary

He must be in pmacontrol plugin directory. (after 68koncept validation process) WebPage to list all plugin available http://pmacontrol_web/en/plugin/all WebPage to regenerate plugin json list http://pmacontrol_web/en/plugin/generationjson

Your local PMAControl will update his plugin database every 24 hours based on the json available on pmacontrol_web.

You can now install and remove easily plugins from your local pmacontrol.

Demo

Clone this wiki locally