aboutsummaryrefslogtreecommitdiff
path: root/w/class/modelconfig.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-10-28 19:56:27 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-10-28 19:56:27 +0100
commite17392e46259e6f2e012017987cf7c31c171488f (patch)
tree72b61b63e32819e81433e8df6f14dc92b0e3a604 /w/class/modelconfig.php
parenta91c916248f967da2d4218b575e665242b7c975b (diff)
downloadwcms-e17392e46259e6f2e012017987cf7c31c171488f.tar.gz
wcms-e17392e46259e6f2e012017987cf7c31c171488f.zip
abstract config NWY
Diffstat (limited to 'w/class/modelconfig.php')
-rw-r--r--w/class/modelconfig.php8
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);
}