Merge pull request #1193 from SamBrishes/patch-001

Add prepare() function, when plugin is installed and initialized.
This commit is contained in:
Diego Najar 2020-07-01 20:03:03 +02:00 committed by GitHub
commit f1b3b4359b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 children 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;