add multi database option along with related zend configuration module (#439)
[openemr.git] / interface / modules / zend_modules / module / Multipledb / src / Multipledb / Controller / ModuleconfigController.php
blobe5094c230383d94c5320eac21bc8ce36200574f0
1 <?php
2 /* +-----------------------------------------------------------------------------+
3 * Copyright 2016 matrix israel
4 * LICENSE: This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 3
7 * of the License, or (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see
14 * http://www.gnu.org/licenses/licenses.html#GPL
15 * @author Oshri Rozmarin <oshri.rozmarin@gmail.com>
16 * +------------------------------------------------------------------------------+
19 namespace Multipledb\Controller;
21 use Zend\View\Model\ViewModel;
23 /**
24 * This is is the configuration for the openemr module installer.
25 * here we adding the openemr hooks and the Acl (permission).
26 * alse we put here the path to css and js file (now it's in zend public folder but in could change).
27 * */
28 class ModuleconfigController
31 public function getHookConfig()
33 //NAME KEY SPECIFIES THE NAME OF THE HOOK FOR UNIQUELY IDENTIFYING IN A MODULE.
34 //TITLE KEY SPECIFIES THE TITLE OF THE HOOK TO BE DISPLAYED IN THE CALLING PAGES.
35 //PATH KEY SPECIFIES THE PATH OF THE RESOURCE, SHOULD SPECIFY THE CONTROLLER
36 //AND IT’S ACTION IN THE PATH, (INCLUDING INDEX ACTION)
38 //EXAMPLES!!
39 $hooks = array (
40 // hook for patient screen low security
41 array (
42 'name' => "multipledb",
43 'title' => "Multipledb",
44 'path' => "public/multipledb",
47 return $hooks;
50 public function getDependedModulesConfig()
52 return array();
55 public function getAclConfig()
57 //new acl rule for disallow using in the General setting screen
58 //EXAMPLES!!
59 $acl = array(
62 return $acl;