Browse code

Formatovanie poli a pridane TODO poznamky

Cinan Rakosnik authored on 13/05/2013 at 00:45:59
Showing 1 changed files
... ...
@@ -6,14 +6,10 @@ require_once "Parser.php";
6 6
 
7 7
 define('CONFIG_FILE', 'config.ini');
8 8
 
9
-$twenties = new Restaurant("Twenties", "http://www.twenties.sk/", array("Polievky" => '//*[@id="article"]/div[2]/p[1]'));
10
-$pulitzer = new Restaurant("Pulitzer", "http://www.pulitzer.sk",
11
-    array("Polievky" => '//*[@id="soups"]',
12
-        "Hlavne jedla" => '//*[@id="meals"]'));
13
-$slovak = new Restaurant("Slovak pub", "http://www.arcaderestaurant.sk/articles/public_menu/show-modules/id/24",
14
-    array("Salat" => '//*[@id="table2"]/tbody/tr[10]',
15
-        "Polievka" => '//*[@id="table2"]/tbody/tr[2]'));
16
-
9
+$twenties = new Restaurant("Twenties", "http://www.twenties.sk/", ["Polievka aj zradlo" => '//*[@id="article"]/div[2]/p[1]']);
10
+$pulitzer = new Restaurant("Pulitzer", "http://www.pulitzer.sk",  ["Tekute predjedlo" => '//*[@id="soups"]', "Zradlo" => '//*[@id="meals"]']);
11
+#todo http://www.irish-pub.sk/sk/denne-menu
12
+#todo http://www.mexicana.sk/dennemenu_sk.htm
17 13
 
18 14
 $data = parse_ini_file(CONFIG_FILE);
19 15
 $outputType = ucfirst($data['output']);
... ...
@@ -22,6 +18,6 @@ $outputClass = sprintf('%sOutput', $outputType);
22 22
 require_once sprintf("outputs/%s.php", $outputClass);
23 23
 $output = new $outputClass();
24 24
 
25
-$parser     = new Parser($output, array($twenties, $pulitzer, $slovak));
25
+$parser     = new Parser($output, array($twenties, $pulitzer));
26 26
 $parser->parse();
27 27
 $output->display();
28 28
\ No newline at end of file