-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppController.php
executable file
·33 lines (29 loc) · 1.09 KB
/
AppController.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/*=========================================================================
MIDAS Server
Copyright (c) Kitware SAS. 20 rue de la Villette. All rights reserved.
69328 Lyon, FRANCE.
See Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
define('VERSION_CACHE', 1);
/**
* @package Slicer App Store
* Appcontroller for this module
*/
class Slicerdatastore_AppController extends MIDAS_GlobalModule
{
public $moduleName='slicerdatastore';
/**
* Called before every pages
*/
public function preDispatch()
{
parent::preDispatch();
$this->view->moduleParent = (strpos(__FILE__, "privateModules") === false) ? "modules":"privateModules";
$this->view->json['global']['moduleParent'] = $this->view->moduleParent;
$this->view->json['global']['httpUrl'] = UtilityComponent::getServerURL();
}
} //end class