summaryrefslogtreecommitdiff
path: root/backend/php/src/plugins/IPlugin.php
authorGiulio Cesare Solaroli <giulio.cesare@clipperz.com>2011-10-02 23:56:18 (UTC)
committer Giulio Cesare Solaroli <giulio.cesare@clipperz.com>2011-10-02 23:56:18 (UTC)
commitef68436ac04da078ffdcacd7e1f785473a303d45 (patch) (side-by-side diff)
treec403752d66a2c4775f00affd4fa8431b29c5b68c /backend/php/src/plugins/IPlugin.php
parent597ecfbc0249d83e1b856cbd558340c01237a360 (diff)
downloadclipperz-ef68436ac04da078ffdcacd7e1f785473a303d45.zip
clipperz-ef68436ac04da078ffdcacd7e1f785473a303d45.tar.gz
clipperz-ef68436ac04da078ffdcacd7e1f785473a303d45.tar.bz2
First version of the newly restructured repository
Diffstat (limited to 'backend/php/src/plugins/IPlugin.php') (more/less context) (ignore whitespace changes)
-rw-r--r--backend/php/src/plugins/IPlugin.php48
1 files changed, 48 insertions, 0 deletions
diff --git a/backend/php/src/plugins/IPlugin.php b/backend/php/src/plugins/IPlugin.php
new file mode 100644
index 0000000..3e39e70
--- a/dev/null
+++ b/backend/php/src/plugins/IPlugin.php
@@ -0,0 +1,48 @@
+<?php
+/**
+ * All functions must be implemented to create a correct POG plugin
+ * The 'optional' functions SetupRender() and AuthorPage() must be implemented and return null
+ * if your plugin does not need them.
+ *
+ */
+interface POG_Plugin
+{
+ /**
+ *
+ * REQUIRED
+ * This function must return the version of the plugin.
+ * It will be used to automatically notify developer when your plugin is updated.
+ *
+ */
+ function Version();
+
+ /**
+ *
+ * REQUIRED
+ * This function performs the actions that your plugin provides.
+ *
+ */
+ function Execute();
+
+ /**
+ * 'OPTIONAL'
+ * If your plugin needs an administrative interface, implement this function.
+ * Else return null
+ *
+ */
+ function SetupRender();
+
+
+ /**
+ *
+ * 'OPTIONAL'
+ * Implement this function to provide a link to your homepage.
+ * e.g. return 'http://myhomepage.com';
+ *
+ * return null if you do not want to link to your homepage
+ * e.g. return null
+ *
+ */
+ function AuthorPage();
+}
+?> \ No newline at end of file