diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-02-10 19:19:45 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-02-10 19:19:45 +0100 |
commit | 8c03f6859c452738aafd554f8dc42cc636a4a1e9 (patch) | |
tree | 4ef49330b8de60ab80a380a28d459cc441da643a /app/class/Modeldb.php | |
parent | 4f9a0544218341204bee98d41bcc097dc61f1799 (diff) | |
download | wcms-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.php | 7 |
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(); } |