diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-10-28 19:56:27 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-10-28 19:56:27 +0100 |
commit | e17392e46259e6f2e012017987cf7c31c171488f (patch) | |
tree | 72b61b63e32819e81433e8df6f14dc92b0e3a604 /w/class/modelconfig.php | |
parent | a91c916248f967da2d4218b575e665242b7c975b (diff) | |
download | wcms-e17392e46259e6f2e012017987cf7c31c171488f.tar.gz wcms-e17392e46259e6f2e012017987cf7c31c171488f.zip |
abstract config NWY
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); } |