druid.menu.class.php 1.2 KB
Newer Older
maryam's avatar
done  
maryam committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

class druid_menu
{
	private $mode = '';

	public function set_mode($mode)
	{
		$this->mode = $mode;
	}

	public function process()
	{
	

David's avatar
David committed
16

maryam's avatar
done  
maryam committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Traitement des modes
	switch ( $this->mode )
		{
		case 'druid.result':
			include('controllers/druid.result.class.php');
			$controller = new druid_result();
			$controller->set_mode($this->mode);
			return $controller->process();
		break;
		
		case 'druid.display':
			include('controllers/druid.display.class.php');
			$controller = new druid_display();
			$controller->set_mode($this->mode);
			return $controller->process();
		break;
		case'druid.arbitrage':
			include('controllers/druid.arbitrage.class.php');
				$controller = new druid_arbitrage();
				$controller->set_mode($this->mode);
				return $controller->process();
		break;
		case'druid.card':
			include('controllers/druid.card.class.php');
				$controller = new druid_card();
				$controller->set_mode($this->mode);
				return $controller->process();
		break;
		
			default:
				include('controllers/druid.menu.game.class.php');
				$controller = new druid_menu_game();
				$controller->set_mode($this->mode);
				return $controller->process();
		}
	}
}

?>