Blame view

src/amdaintegration_autoload.php 1.85 KB
cc3bdb0e   Elena.Budnik   RequestManager sp...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
//autoload configuration
function amdaintegration_autoload($class_name)
{
	$dirs = array(
			'InputOutput',
			'InputOutput/IHMImpl',
			'InputOutput/IHMImpl/Config',
			'InputOutput/IHMImpl/Params',
			'InputOutput/IHMImpl/Params/DataMiningImpl',
			'InputOutput/IHMImpl/Params/StatisticsImpl',
			'InputOutput/IHMImpl/Params/DownloadImpl',
			'InputOutput/IHMImpl/Params/PlotImpl',
			'InputOutput/IHMImpl/Params/GeneratorImpl',
			'InputOutput/IHMImpl/Process',
			'InputOutput/IHMImpl/ParamInfo',
			'InputOutput/IHMImpl/Tools',
			'InputOutput/IHMImpl/TimeTables',
			'InputOutput/TestImpl',
d5a86709   Elena.Budnik   interim commit
20
21
			'InputOutput/WSImpl',
			'InputOutput/WSImpl/Config',
8b8f98e3   Elena.Budnik   getStatus fixed
22
			'InputOutput/WSImpl/Process',
d5a86709   Elena.Budnik   interim commit
23
			'InputOutput/WSImpl/Params/DownloadImpl',
1dc764e6   Elena.Budnik   getPlot partial c...
24
			'InputOutput/WSImpl/Params/PlotImpl',
d5a86709   Elena.Budnik   interim commit
25
			'InputOutput/WSImpl/Tools',
738745d3   Elena.Budnik   draft for Web Ser...
26
			'InputOutput/WSImpl/TimeTables',
cc3bdb0e   Elena.Budnik   RequestManager sp...
27
28
29
30
31
32
33
34
35
36
37
38
39
			'Request',
			'Request/Config',
			'Request/ParamsRequestImpl',
			'Request/ParamsRequestImpl/Nodes',
			'Request/ParamsRequestImpl/Nodes/Infos',
			'Request/ParamsRequestImpl/Nodes/Params',
			'Request/ParamsRequestImpl/Nodes/Requests',
			'Request/ProcessRequestImpl',
			'Request/ProcessRequestImpl/Process',
			'Request/TTRequestImpl' 
	);
	
	$ihm_dirs = array(
f1252b32   Benjamin Renard   Add template for ...
40
			IHM_SRC_DIR.'/php/classes',
68de0b39   Benjamin Renard   Merge branch mast...
41
42
43
			IHM_SRC_DIR.'/php/RemoteDataCenter',
			IHM_SRC_DIR.'/php/WebServices',
			IHM_SRC_DIR.'/php/WebServices/Client'
cc3bdb0e   Elena.Budnik   RequestManager sp...
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
	);
   
   $find = false;
	
	$file = __DIR__.'/'.$class_name.'.php';
	
	if (file_exists($file))
	{
		require $file;
		return;	
	}
		
	if (!$find)
		foreach($dirs as $dir)
		{
			$file = __DIR__.'/'.$dir.'/'.$class_name.'.php';
			if (file_exists($file))
			{
				require $file;
				$find = true;
				break;
			}
		}
	
	if (!$find)
		foreach($ihm_dirs as $dir)
		{
			$file = $dir.'/'.$class_name.'.php';
			if (file_exists($file))
			{
				require $file;			 
				break;
			}
		}
}

spl_autoload_register('amdaintegration_autoload');

?>