aboutsummaryrefslogtreecommitdiff
path: root/app/class/Modeldb.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-02-10 19:19:45 +0100
committervincent-peugnet <v.peugnet@free.fr>2020-02-10 19:19:45 +0100
commit8c03f6859c452738aafd554f8dc42cc636a4a1e9 (patch)
tree4ef49330b8de60ab80a380a28d459cc441da643a /app/class/Modeldb.php
parent4f9a0544218341204bee98d41bcc097dc61f1799 (diff)
downloadwcms-8c03f6859c452738aafd554f8dc42cc636a4a1e9.tar.gz
wcms-8c03f6859c452738aafd554f8dc42cc636a4a1e9.zip
new feature : page redirection, close #44
Diffstat (limited to 'app/class/Modeldb.php')
-rw-r--r--app/class/Modeldb.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/class/Modeldb.php b/app/class/Modeldb.php
index 92f0d22..953521f 100644
--- a/app/class/Modeldb.php
+++ b/app/class/Modeldb.php
@@ -33,7 +33,12 @@ class Modeldb extends Model
$this->repo = new Repository($repo, $this->database);
}
- public function list()
+ /**
+ * List every IDs of a database
+ *
+ * @return array of ID strings
+ */
+ public function list() : array
{
return $this->repo->getAllIds();
}