From f4df3e9b9df3d54ce58796f923da70ff7e566018 Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 26 Aug 2025 01:15:33 +0200 Subject: =?UTF-8?q?s=C3=A9paration=20bloc=20/=20mise=20en=20page,=20bloc?= =?UTF-8?q?=20sp=C3=A9cial=20pour=20les=20actus,=20renommage=20de=20classe?= =?UTF-8?q?s,=20fichiers,=20etc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/Blocks.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/model/Blocks.php (limited to 'src/model/Blocks.php') diff --git a/src/model/Blocks.php b/src/model/Blocks.php new file mode 100644 index 0000000..f6475cd --- /dev/null +++ b/src/model/Blocks.php @@ -0,0 +1,38 @@ + self::$types[$i], 'name' => self::$names[$i]]; + } + return $blocks; + } + + static public function getNameFromType(string $type): string + { + for($i=0; $i < count(self::$types); $i++){ + if(self::$types[$i] === $type){ + return self::$names[$i]; + } + } + return 'server side error'; + } +} \ No newline at end of file -- cgit v1.2.3