From 80babfa8506e280ad668e4d5cf7e0c4e83eec05d Mon Sep 17 00:00:00 2001 From: SamBrishes Date: Wed, 13 May 2020 10:37:09 +0200 Subject: [PATCH] Add prepare function --- bl-kernel/abstract/plugin.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bl-kernel/abstract/plugin.class.php b/bl-kernel/abstract/plugin.class.php index 55313382..fc065f33 100644 --- a/bl-kernel/abstract/plugin.class.php +++ b/bl-kernel/abstract/plugin.class.php @@ -66,6 +66,7 @@ class Plugin { if ($this->installed()) { $Tmp = new dbJSON($this->filenameDb); $this->db = $Tmp->db; + $this->prepare(); } } @@ -270,10 +271,16 @@ class Plugin { public function init() { - // This method is used on childre classes. + // This method is used on children classes // The user can define his own field of the database } + public function prepare() + { + // This method is used on children classes + // The user can prepare the plugin, when it is installed + } + public function post() { $args = $_POST;