diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-02-12 21:05:46 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-02-12 21:09:32 +0100 |
commit | e115875801c2e32399079c4ef92bb11ceb4f2c1d (patch) | |
tree | a5251d843999b7c751c8f040685cc42b4d50f42a /app/class/Controllerhome.php | |
parent | 0893f20446a6645c5f928f2cb41f688a9fc5fcf1 (diff) | |
download | wcms-e115875801c2e32399079c4ef92bb11ceb4f2c1d.tar.gz wcms-e115875801c2e32399079c4ef92bb11ceb4f2c1d.zip |
generate cytoscape datas
Diffstat (limited to 'app/class/Controllerhome.php')
-rw-r--r-- | app/class/Controllerhome.php | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/app/class/Controllerhome.php b/app/class/Controllerhome.php index 42ace87..86b2f6f 100644 --- a/app/class/Controllerhome.php +++ b/app/class/Controllerhome.php @@ -86,6 +86,24 @@ class Controllerhome extends Controllerpage } } + /** + * Temporary map display function + */ + public function map() + { + if ($this->user->isadmin()) { + + $pagelist = $this->modelhome->getlister(); + $datas = $this->modelhome->mapdata($pagelist); + + $vars['json'] = json_encode($datas, JSON_PRETTY_PRINT); + + $this->showtemplate('map', $vars); + + } + + } + public function columns() { if (isset($_POST['columns']) && $this->user->iseditor()) { @@ -127,12 +145,7 @@ class Controllerhome extends Controllerpage $this->routedirect('home'); } } - - public function map() - { - - } - + /** * Render every pages in the database */ |