Skip to content

Commit

Permalink
modification pour refléter la signature exacte des méthodes preConfig…
Browse files Browse the repository at this point in the history
… et postConfig

modification pour refléter la signature exacte des méthodes preConfig et postConfig
  • Loading branch information
amg0 committed Feb 6, 2022
1 parent be17eec commit aeb3e4d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/class/template.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,18 @@ public function toHtml($_version = 'dashboard') {}
/*
* Permet de déclencher une action avant modification d'une variable de configuration du plugin
* Exemple avec la variable "param3"
public static function preConfig_param3() {}
public static function preConfig_param3( $value ) {
// do some checks or modify on $value
return $value;
}
*/

/*
* Permet de déclencher une action après modification d'une variable de configuration du plugin
* Exemple avec la variable "param3"
public static function postConfig_param3() {}
public static function postConfig_param3() {
// no return value
}
*/

/* * **********************Getteur Setteur*************************** */
Expand Down

0 comments on commit aeb3e4d

Please sign in to comment.