diff options
Diffstat (limited to 'w/class/modelconfig.php')
-rw-r--r-- | w/class/modelconfig.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/w/class/modelconfig.php b/w/class/modelconfig.php index 748edb1..7c5fc18 100644 --- a/w/class/modelconfig.php +++ b/w/class/modelconfig.php @@ -1,8 +1,8 @@ <?php -class Modelconfig extends Model +abstract class Modelconfig extends Model { - public function readconfig() + public static function readconfig() { if (file_exists(self::CONFIG_FILE)) { $current = file_get_contents(self::CONFIG_FILE); @@ -14,13 +14,13 @@ class Modelconfig extends Model } - public function createconfig(array $donnees) + public static function createconfig(array $donnees) { return new Config($donnees); } - public function savejson(string $json) + public static function savejson(string $json) { file_put_contents(self::CONFIG_FILE, $json); } |