Browse code

Triedy rozhadzane do samostatnych suborov

nosko authored on 26/01/2013 at 22:15:57
Showing 14 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1 @@
0
+obedovat
0 1
\ No newline at end of file
1 2
new file mode 100644
... ...
@@ -0,0 +1,23 @@
0
+<?xml version="1.0" encoding="UTF-8"?>
1
+<project version="4">
2
+  <component name="CompilerConfiguration">
3
+    <option name="DEFAULT_COMPILER" value="Javac" />
4
+    <resourceExtensions />
5
+    <wildcardResourcePatterns>
6
+      <entry name="!?*.java" />
7
+      <entry name="!?*.form" />
8
+      <entry name="!?*.class" />
9
+      <entry name="!?*.groovy" />
10
+      <entry name="!?*.scala" />
11
+      <entry name="!?*.flex" />
12
+      <entry name="!?*.kt" />
13
+      <entry name="!?*.clj" />
14
+    </wildcardResourcePatterns>
15
+    <annotationProcessing>
16
+      <profile default="true" name="Default" enabled="false">
17
+        <processorPath useClasspath="true" />
18
+      </profile>
19
+    </annotationProcessing>
20
+  </component>
21
+</project>
22
+
0 23
new file mode 100644
... ...
@@ -0,0 +1,5 @@
0
+<?xml version="1.0" encoding="UTF-8"?>
1
+<project version="4">
2
+  <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
3
+</project>
4
+
0 5
new file mode 100644
... ...
@@ -0,0 +1,145 @@
0
+<?xml version="1.0" encoding="UTF-8"?>
1
+<project version="4">
2
+  <component name="DaemonCodeAnalyzer">
3
+    <disable_hints />
4
+  </component>
5
+  <component name="DebuggerManager">
6
+    <breakpoint_any>
7
+      <breakpoint>
8
+        <option name="NOTIFY_CAUGHT" value="true" />
9
+        <option name="NOTIFY_UNCAUGHT" value="true" />
10
+        <option name="ENABLED" value="false" />
11
+        <option name="LOG_ENABLED" value="false" />
12
+        <option name="LOG_EXPRESSION_ENABLED" value="false" />
13
+        <option name="SUSPEND_POLICY" value="SuspendAll" />
14
+        <option name="SUSPEND" value="true" />
15
+        <option name="COUNT_FILTER_ENABLED" value="false" />
16
+        <option name="COUNT_FILTER" value="0" />
17
+        <option name="CONDITION_ENABLED" value="true" />
18
+        <option name="CLASS_FILTERS_ENABLED" value="false" />
19
+        <option name="INSTANCE_FILTERS_ENABLED" value="false" />
20
+        <option name="CONDITION" value="" />
21
+        <option name="LOG_MESSAGE" value="" />
22
+      </breakpoint>
23
+      <breakpoint>
24
+        <option name="NOTIFY_CAUGHT" value="true" />
25
+        <option name="NOTIFY_UNCAUGHT" value="true" />
26
+        <option name="ENABLED" value="false" />
27
+        <option name="LOG_ENABLED" value="false" />
28
+        <option name="LOG_EXPRESSION_ENABLED" value="false" />
29
+        <option name="SUSPEND_POLICY" value="SuspendAll" />
30
+        <option name="SUSPEND" value="true" />
31
+        <option name="COUNT_FILTER_ENABLED" value="false" />
32
+        <option name="COUNT_FILTER" value="0" />
33
+        <option name="CONDITION_ENABLED" value="true" />
34
+        <option name="CLASS_FILTERS_ENABLED" value="false" />
35
+        <option name="INSTANCE_FILTERS_ENABLED" value="false" />
36
+        <option name="CONDITION" value="" />
37
+        <option name="LOG_MESSAGE" value="" />
38
+      </breakpoint>
39
+    </breakpoint_any>
40
+    <breakpoint_rules />
41
+    <ui_properties />
42
+  </component>
43
+  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
44
+    <OptionsSetting value="true" id="Add" />
45
+    <OptionsSetting value="true" id="Remove" />
46
+    <OptionsSetting value="true" id="Checkout" />
47
+    <OptionsSetting value="true" id="Update" />
48
+    <OptionsSetting value="true" id="Status" />
49
+    <OptionsSetting value="true" id="Edit" />
50
+    <ConfirmationsSetting value="0" id="Add" />
51
+    <ConfirmationsSetting value="0" id="Remove" />
52
+  </component>
53
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true">
54
+    <output url="file://$PROJECT_DIR$/out" />
55
+  </component>
56
+  <component name="RunManager">
57
+    <configuration default="true" type="Remote" factoryName="Remote">
58
+      <option name="USE_SOCKET_TRANSPORT" value="true" />
59
+      <option name="SERVER_MODE" value="false" />
60
+      <option name="SHMEM_ADDRESS" value="javadebug" />
61
+      <option name="HOST" value="localhost" />
62
+      <option name="PORT" value="5005" />
63
+      <method />
64
+    </configuration>
65
+    <configuration default="true" type="Applet" factoryName="Applet">
66
+      <module name="" />
67
+      <option name="MAIN_CLASS_NAME" />
68
+      <option name="HTML_FILE_NAME" />
69
+      <option name="HTML_USED" value="false" />
70
+      <option name="WIDTH" value="400" />
71
+      <option name="HEIGHT" value="300" />
72
+      <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
73
+      <option name="VM_PARAMETERS" />
74
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
75
+      <option name="ALTERNATIVE_JRE_PATH" />
76
+      <method />
77
+    </configuration>
78
+    <configuration default="true" type="Application" factoryName="Application">
79
+      <option name="MAIN_CLASS_NAME" />
80
+      <option name="VM_PARAMETERS" />
81
+      <option name="PROGRAM_PARAMETERS" />
82
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
83
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
84
+      <option name="ALTERNATIVE_JRE_PATH" />
85
+      <option name="ENABLE_SWING_INSPECTOR" value="false" />
86
+      <option name="ENV_VARIABLES" />
87
+      <option name="PASS_PARENT_ENVS" value="true" />
88
+      <module name="" />
89
+      <envs />
90
+      <method />
91
+    </configuration>
92
+    <configuration default="true" type="JUnit" factoryName="JUnit">
93
+      <module name="" />
94
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
95
+      <option name="ALTERNATIVE_JRE_PATH" />
96
+      <option name="PACKAGE_NAME" />
97
+      <option name="MAIN_CLASS_NAME" />
98
+      <option name="METHOD_NAME" />
99
+      <option name="TEST_OBJECT" value="class" />
100
+      <option name="VM_PARAMETERS" value="-ea" />
101
+      <option name="PARAMETERS" />
102
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
103
+      <option name="ENV_VARIABLES" />
104
+      <option name="PASS_PARENT_ENVS" value="true" />
105
+      <option name="TEST_SEARCH_SCOPE">
106
+        <value defaultName="moduleWithDependencies" />
107
+      </option>
108
+      <envs />
109
+      <patterns />
110
+      <method />
111
+    </configuration>
112
+    <list size="0" />
113
+    <configuration name="&lt;template&gt;" type="TestNG" default="true" selected="false">
114
+      <option name="MAIN_CLASS_NAME" />
115
+      <option name="VM_PARAMETERS" value="-ea" />
116
+      <option name="PARAMETERS" />
117
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
118
+    </configuration>
119
+    <configuration name="&lt;template&gt;" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" default="true" selected="false">
120
+      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m" />
121
+    </configuration>
122
+    <configuration name="&lt;template&gt;" type="WebApp" default="true" selected="false">
123
+      <Host>localhost</Host>
124
+      <Port>5050</Port>
125
+    </configuration>
126
+  </component>
127
+  <component name="masterDetails">
128
+    <states>
129
+      <state key="ProjectJDKs.UI">
130
+        <settings>
131
+          <last-edited>1.6</last-edited>
132
+          <splitter-proportions>
133
+            <option name="proportions">
134
+              <list>
135
+                <option value="0.2" />
136
+              </list>
137
+            </option>
138
+          </splitter-proportions>
139
+        </settings>
140
+      </state>
141
+    </states>
142
+  </component>
143
+</project>
144
+
0 145
new file mode 100644
... ...
@@ -0,0 +1,9 @@
0
+<?xml version="1.0" encoding="UTF-8"?>
1
+<project version="4">
2
+  <component name="ProjectModuleManager">
3
+    <modules>
4
+      <module fileurl="file://$PROJECT_DIR$/obedparser.iml" filepath="$PROJECT_DIR$/obedparser.iml" />
5
+    </modules>
6
+  </component>
7
+</project>
8
+
0 9
new file mode 100644
... ...
@@ -0,0 +1,5 @@
0
+<component name="DependencyValidationManager">
1
+  <state>
2
+    <option name="SKIP_IMPORT_STATEMENTS" value="false" />
3
+  </state>
4
+</component>
0 5
\ No newline at end of file
1 6
new file mode 100644
... ...
@@ -0,0 +1,7 @@
0
+<?xml version="1.0" encoding="UTF-8"?>
1
+<project version="4">
2
+  <component name="VcsDirectoryMappings">
3
+    <mapping directory="" vcs="" />
4
+  </component>
5
+</project>
6
+
0 7
new file mode 100644
... ...
@@ -0,0 +1,389 @@
0
+<?xml version="1.0" encoding="UTF-8"?>
1
+<project version="4">
2
+  <component name="ChangeListManager">
3
+    <list default="true" id="0448611a-7948-40ae-8c6b-3df2a45a1aff" name="Default" comment="" />
4
+    <ignored path="obedparser.iws" />
5
+    <ignored path=".idea/workspace.xml" />
6
+    <file path="/index.php" changelist="0448611a-7948-40ae-8c6b-3df2a45a1aff" time="1359238349529" ignored="false" />
7
+    <file path="/a.dummy" changelist="0448611a-7948-40ae-8c6b-3df2a45a1aff" time="1359237210715" ignored="false" />
8
+    <file path="/iOutput.php" changelist="0448611a-7948-40ae-8c6b-3df2a45a1aff" time="1359237355230" ignored="false" />
9
+    <file path="/Output.php" changelist="0448611a-7948-40ae-8c6b-3df2a45a1aff" time="1359238237265" ignored="false" />
10
+    <file path="/Parser.php" changelist="0448611a-7948-40ae-8c6b-3df2a45a1aff" time="1359238211882" ignored="false" />
11
+    <option name="TRACKING_ENABLED" value="true" />
12
+    <option name="SHOW_DIALOG" value="false" />
13
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
14
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
15
+    <option name="LAST_RESOLUTION" value="IGNORE" />
16
+  </component>
17
+  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
18
+  <component name="CreatePatchCommitExecutor">
19
+    <option name="PATCH_PATH" value="" />
20
+  </component>
21
+  <component name="DaemonCodeAnalyzer">
22
+    <disable_hints />
23
+  </component>
24
+  <component name="DebuggerManager">
25
+    <ui_properties default_suspend_policy="SuspendAll" default_condition_enabled="true" />
26
+    <breakpoint_any default_suspend_policy="SuspendAll" default_condition_enabled="true">
27
+      <breakpoint>
28
+        <option name="NOTIFY_CAUGHT" value="true" />
29
+        <option name="NOTIFY_UNCAUGHT" value="true" />
30
+        <option name="ENABLED" value="false" />
31
+        <option name="LOG_ENABLED" value="false" />
32
+        <option name="LOG_EXPRESSION_ENABLED" value="false" />
33
+        <option name="SUSPEND_POLICY" value="SuspendAll" />
34
+        <option name="SUSPEND" value="true" />
35
+        <option name="COUNT_FILTER_ENABLED" value="false" />
36
+        <option name="COUNT_FILTER" value="0" />
37
+        <option name="CONDITION_ENABLED" value="true" />
38
+        <option name="CLASS_FILTERS_ENABLED" value="false" />
39
+        <option name="INSTANCE_FILTERS_ENABLED" value="false" />
40
+        <option name="CONDITION" value="" />
41
+        <option name="LOG_MESSAGE" value="" />
42
+      </breakpoint>
43
+      <breakpoint>
44
+        <option name="NOTIFY_CAUGHT" value="true" />
45
+        <option name="NOTIFY_UNCAUGHT" value="true" />
46
+        <option name="ENABLED" value="false" />
47
+        <option name="LOG_ENABLED" value="false" />
48
+        <option name="LOG_EXPRESSION_ENABLED" value="false" />
49
+        <option name="SUSPEND_POLICY" value="SuspendAll" />
50
+        <option name="SUSPEND" value="true" />
51
+        <option name="COUNT_FILTER_ENABLED" value="false" />
52
+        <option name="COUNT_FILTER" value="0" />
53
+        <option name="CONDITION_ENABLED" value="true" />
54
+        <option name="CLASS_FILTERS_ENABLED" value="false" />
55
+        <option name="INSTANCE_FILTERS_ENABLED" value="false" />
56
+        <option name="CONDITION" value="" />
57
+        <option name="LOG_MESSAGE" value="" />
58
+      </breakpoint>
59
+    </breakpoint_any>
60
+    <breakpoint_rules />
61
+    <ui_properties />
62
+  </component>
63
+  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
64
+  <component name="FavoritesManager">
65
+    <favorites_list name="obedparser" />
66
+    <favorites_list name="obedovat" />
67
+  </component>
68
+  <component name="FileEditorManager">
69
+    <leaf>
70
+      <file leaf-file-name="index.php" pinned="false" current="true" current-in-tab="true">
71
+        <entry file="file://$PROJECT_DIR$/index.php">
72
+          <provider selected="true" editor-type-id="text-editor">
73
+            <state line="18" column="28" selection-start="309" selection-end="309" vertical-scroll-proportion="0.29565218">
74
+              <folding />
75
+            </state>
76
+          </provider>
77
+        </entry>
78
+      </file>
79
+      <file leaf-file-name="Parser.php" pinned="false" current="false" current-in-tab="false">
80
+        <entry file="file://$PROJECT_DIR$/Parser.php">
81
+          <provider selected="true" editor-type-id="text-editor">
82
+            <state line="42" column="138" selection-start="1306" selection-end="1306" vertical-scroll-proportion="-2.0833333">
83
+              <folding />
84
+            </state>
85
+          </provider>
86
+        </entry>
87
+      </file>
88
+      <file leaf-file-name="iOutput.php" pinned="false" current="false" current-in-tab="false">
89
+        <entry file="file://$PROJECT_DIR$/iOutput.php">
90
+          <provider selected="true" editor-type-id="text-editor">
91
+            <state line="11" column="1" selection-start="245" selection-end="245" vertical-scroll-proportion="-6.875">
92
+              <folding />
93
+            </state>
94
+          </provider>
95
+        </entry>
96
+      </file>
97
+      <file leaf-file-name="Output.php" pinned="false" current="false" current-in-tab="false">
98
+        <entry file="file://$PROJECT_DIR$/Output.php">
99
+          <provider selected="true" editor-type-id="text-editor">
100
+            <state line="17" column="5" selection-start="360" selection-end="360" vertical-scroll-proportion="-10.625">
101
+              <folding>
102
+                <element signature="e#6#157#0" expanded="true" />
103
+              </folding>
104
+            </state>
105
+          </provider>
106
+        </entry>
107
+      </file>
108
+    </leaf>
109
+  </component>
110
+  <component name="FindManager">
111
+    <FindUsagesManager>
112
+      <setting name="OPEN_NEW_TAB" value="false" />
113
+    </FindUsagesManager>
114
+  </component>
115
+  <component name="IdeDocumentHistory">
116
+    <option name="changedFiles">
117
+      <list>
118
+        <option value="$PROJECT_DIR$/restaurant.php" />
119
+        <option value="$PROJECT_DIR$/iOutput.php" />
120
+        <option value="$PROJECT_DIR$/Output.php" />
121
+        <option value="$PROJECT_DIR$/Parser.php" />
122
+        <option value="$PROJECT_DIR$/index.php" />
123
+      </list>
124
+    </option>
125
+  </component>
126
+  <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
127
+  <component name="ProjectFrameBounds">
128
+    <option name="x" value="10" />
129
+    <option name="y" value="22" />
130
+    <option name="width" value="1260" />
131
+    <option name="height" value="760" />
132
+  </component>
133
+  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
134
+    <OptionsSetting value="true" id="Add" />
135
+    <OptionsSetting value="true" id="Remove" />
136
+    <OptionsSetting value="true" id="Checkout" />
137
+    <OptionsSetting value="true" id="Update" />
138
+    <OptionsSetting value="true" id="Status" />
139
+    <OptionsSetting value="true" id="Edit" />
140
+    <OptionsSetting value="true" id="Undo Check Out" />
141
+    <OptionsSetting value="true" id="Get Latest Version" />
142
+    <ConfirmationsSetting value="0" id="Add" />
143
+    <ConfirmationsSetting value="0" id="Remove" />
144
+  </component>
145
+  <component name="ProjectReloadState">
146
+    <option name="STATE" value="0" />
147
+  </component>
148
+  <component name="ProjectView">
149
+    <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
150
+      <flattenPackages />
151
+      <showMembers />
152
+      <showModules />
153
+      <showLibraryContents />
154
+      <hideEmptyPackages />
155
+      <abbreviatePackageNames />
156
+      <autoscrollToSource />
157
+      <autoscrollFromSource />
158
+      <sortByType />
159
+    </navigator>
160
+    <panes>
161
+      <pane id="ProjectPane">
162
+        <subPane>
163
+          <PATH>
164
+            <PATH_ELEMENT>
165
+              <option name="myItemId" value="obedovat" />
166
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
167
+            </PATH_ELEMENT>
168
+          </PATH>
169
+          <PATH>
170
+            <PATH_ELEMENT>
171
+              <option name="myItemId" value="obedovat" />
172
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
173
+            </PATH_ELEMENT>
174
+            <PATH_ELEMENT>
175
+              <option name="myItemId" value="obedparser" />
176
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
177
+            </PATH_ELEMENT>
178
+          </PATH>
179
+        </subPane>
180
+      </pane>
181
+      <pane id="PackagesPane" />
182
+      <pane id="Scope" />
183
+    </panes>
184
+  </component>
185
+  <component name="PropertiesComponent">
186
+    <property name="GoToFile.includeJavaFiles" value="false" />
187
+    <property name="GoToClass.toSaveIncludeLibraries" value="false" />
188
+    <property name="MemberChooser.sorted" value="false" />
189
+    <property name="MemberChooser.showClasses" value="true" />
190
+    <property name="GoToClass.includeLibraries" value="false" />
191
+    <property name="MemberChooser.copyJavadoc" value="false" />
192
+  </component>
193
+  <component name="RunManager">
194
+    <configuration default="true" type="Remote" factoryName="Remote">
195
+      <option name="USE_SOCKET_TRANSPORT" value="true" />
196
+      <option name="SERVER_MODE" value="false" />
197
+      <option name="SHMEM_ADDRESS" value="javadebug" />
198
+      <option name="HOST" value="localhost" />
199
+      <option name="PORT" value="5005" />
200
+      <method />
201
+    </configuration>
202
+    <configuration default="true" type="PhpLocalRunConfigurationType" factoryName="PHP Console">
203
+      <method />
204
+    </configuration>
205
+    <configuration default="true" type="Applet" factoryName="Applet">
206
+      <module name="" />
207
+      <option name="MAIN_CLASS_NAME" />
208
+      <option name="HTML_FILE_NAME" />
209
+      <option name="HTML_USED" value="false" />
210
+      <option name="WIDTH" value="400" />
211
+      <option name="HEIGHT" value="300" />
212
+      <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
213
+      <option name="VM_PARAMETERS" />
214
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
215
+      <option name="ALTERNATIVE_JRE_PATH" />
216
+      <method />
217
+    </configuration>
218
+    <configuration default="true" type="Application" factoryName="Application">
219
+      <option name="MAIN_CLASS_NAME" />
220
+      <option name="VM_PARAMETERS" />
221
+      <option name="PROGRAM_PARAMETERS" />
222
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
223
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
224
+      <option name="ALTERNATIVE_JRE_PATH" />
225
+      <option name="ENABLE_SWING_INSPECTOR" value="false" />
226
+      <option name="ENV_VARIABLES" />
227
+      <option name="PASS_PARENT_ENVS" value="true" />
228
+      <module name="" />
229
+      <envs />
230
+      <method />
231
+    </configuration>
232
+    <configuration default="true" type="JUnit" factoryName="JUnit">
233
+      <module name="" />
234
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
235
+      <option name="ALTERNATIVE_JRE_PATH" />
236
+      <option name="PACKAGE_NAME" />
237
+      <option name="MAIN_CLASS_NAME" />
238
+      <option name="METHOD_NAME" />
239
+      <option name="TEST_OBJECT" value="class" />
240
+      <option name="VM_PARAMETERS" value="-ea" />
241
+      <option name="PARAMETERS" />
242
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
243
+      <option name="ENV_VARIABLES" />
244
+      <option name="PASS_PARENT_ENVS" value="true" />
245
+      <option name="TEST_SEARCH_SCOPE">
246
+        <value defaultName="moduleWithDependencies" />
247
+      </option>
248
+      <envs />
249
+      <patterns />
250
+      <method />
251
+    </configuration>
252
+    <list size="0" />
253
+    <configuration name="&lt;template&gt;" type="TestNG" default="true" selected="false">
254
+      <option name="MAIN_CLASS_NAME" />
255
+      <option name="VM_PARAMETERS" value="-ea" />
256
+      <option name="PARAMETERS" />
257
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
258
+    </configuration>
259
+    <configuration name="&lt;template&gt;" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" default="true" selected="false">
260
+      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m" />
261
+    </configuration>
262
+    <configuration name="&lt;template&gt;" type="WebApp" default="true" selected="false">
263
+      <Host>localhost</Host>
264
+      <Port>5050</Port>
265
+    </configuration>
266
+  </component>
267
+  <component name="ShelveChangesManager" show_recycled="false" />
268
+  <component name="ToolWindowManager">
269
+    <frame x="10" y="22" width="1260" height="760" extended-state="0" />
270
+    <editor active="true" />
271
+    <layout>
272
+      <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
273
+      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
274
+      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
275
+      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
276
+      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2497979" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
277
+      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
278
+      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
279
+      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
280
+      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
281
+      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
282
+      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
283
+      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
284
+      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
285
+      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
286
+      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
287
+      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
288
+      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
289
+    </layout>
290
+  </component>
291
+  <component name="VcsContentAnnotationSettings">
292
+    <option name="myLimit" value="2678400000" />
293
+  </component>
294
+  <component name="VcsManagerConfiguration">
295
+    <option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
296
+    <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
297
+    <option name="CHECK_NEW_TODO" value="true" />
298
+    <option name="myTodoPanelSettings">
299
+      <value>
300
+        <are-packages-shown value="false" />
301
+        <are-modules-shown value="false" />
302
+        <flatten-packages value="false" />
303
+        <is-autoscroll-to-source value="false" />
304
+      </value>
305
+    </option>
306
+    <option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
307
+    <option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
308
+    <option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
309
+    <option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
310
+    <option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
311
+    <option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
312
+    <option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
313
+    <option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
314
+    <option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
315
+    <option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
316
+    <option name="DEFAULT_PATCH_EXTENSION" value="patch" />
317
+    <option name="SHORT_DIFF_HORISONTALLY" value="true" />
318
+    <option name="SHORT_DIFF_EXTRA_LINES" value="2" />
319
+    <option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
320
+    <option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
321
+    <option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
322
+    <option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
323
+    <option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
324
+    <option name="SHOW_DIRTY_RECURSIVELY" value="false" />
325
+    <option name="LIMIT_HISTORY" value="true" />
326
+    <option name="MAXIMUM_HISTORY_ROWS" value="1000" />
327
+    <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
328
+    <option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
329
+    <option name="LAST_COMMIT_MESSAGE" />
330
+    <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
331
+    <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
332
+    <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
333
+    <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
334
+    <option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
335
+    <option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
336
+    <option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
337
+    <option name="ACTIVE_VCS_NAME" />
338
+    <option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
339
+    <option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
340
+    <option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
341
+    <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
342
+  </component>
343
+  <component name="XDebuggerManager">
344
+    <breakpoint-manager />
345
+  </component>
346
+  <component name="editorHistoryManager">
347
+    <entry file="file://$PROJECT_DIR$/Restaurant.php">
348
+      <provider selected="true" editor-type-id="text-editor">
349
+        <state line="53" column="0" selection-start="1076" selection-end="1076" vertical-scroll-proportion="1.3520408">
350
+          <folding>
351
+            <element signature="e#6#157#0" expanded="true" />
352
+          </folding>
353
+        </state>
354
+      </provider>
355
+    </entry>
356
+    <entry file="file://$PROJECT_DIR$/iOutput.php">
357
+      <provider selected="true" editor-type-id="text-editor">
358
+        <state line="11" column="1" selection-start="245" selection-end="245" vertical-scroll-proportion="-6.875">
359
+          <folding />
360
+        </state>
361
+      </provider>
362
+    </entry>
363
+    <entry file="file://$PROJECT_DIR$/Output.php">
364
+      <provider selected="true" editor-type-id="text-editor">
365
+        <state line="17" column="5" selection-start="360" selection-end="360" vertical-scroll-proportion="-10.625">
366
+          <folding>
367
+            <element signature="e#6#157#0" expanded="true" />
368
+          </folding>
369
+        </state>
370
+      </provider>
371
+    </entry>
372
+    <entry file="file://$PROJECT_DIR$/Parser.php">
373
+      <provider selected="true" editor-type-id="text-editor">
374
+        <state line="42" column="138" selection-start="1306" selection-end="1306" vertical-scroll-proportion="-2.0833333">
375
+          <folding />
376
+        </state>
377
+      </provider>
378
+    </entry>
379
+    <entry file="file://$PROJECT_DIR$/index.php">
380
+      <provider selected="true" editor-type-id="text-editor">
381
+        <state line="18" column="28" selection-start="309" selection-end="309" vertical-scroll-proportion="0.29565218">
382
+          <folding />
383
+        </state>
384
+      </provider>
385
+    </entry>
386
+  </component>
387
+</project>
388
+
0 389
new file mode 100644
... ...
@@ -0,0 +1,25 @@
0
+<?php
1
+/**
2
+ * Created by IntelliJ IDEA.
3
+ * User: nosko
4
+ * Date: 1/26/13
5
+ * Time: 10:53 PM
6
+ * To change this template use File | Settings | File Templates.
7
+ */
8
+
9
+require_once "iOutput.php";
10
+
11
+class Output implements iOutput {
12
+    protected $output = "";
13
+    public  $newLine = "<br>\n";
14
+
15
+    public function log($message) {
16
+        $this->output .= $message;
17
+    }
18
+
19
+    public function newLine() {
20
+        return $this->newLine;
21
+    }
22
+
23
+    public function display(){}
24
+}
0 25
\ No newline at end of file
1 26
new file mode 100644
... ...
@@ -0,0 +1,71 @@
0
+<?php
1
+/**
2
+ * Created by IntelliJ IDEA.
3
+ * User: nosko
4
+ * Date: 1/26/13
5
+ * Time: 10:57 PM
6
+ * To change this template use File | Settings | File Templates.
7
+ */
8
+class Parser {
9
+
10
+    private $restaurants = array();
11
+    private $logger;
12
+
13
+    function __construct($logger, $restaurants) {
14
+
15
+        // Check if logger implements iOutput interface
16
+        if (  !in_array("iOutput", class_implements($logger)) ) {
17
+            throw new InvalidArgumentException("Logger class must implement interface iOutput");
18
+        }
19
+
20
+        $this->logger = $logger;
21
+
22
+        if (empty($restaurants) || !is_array($restaurants)) {
23
+            throw new InvalidArgumentException("Array argument required");
24
+        }
25
+
26
+        $this->restaurants = $restaurants;
27
+    }
28
+
29
+    public function parse() {
30
+        foreach ($this->restaurants as $restaurant) {
31
+
32
+            $source = file_get_contents($restaurant->getUrl());
33
+
34
+            if ($source === false) {
35
+                throw new RuntimeException("Can't read source address: " . $restaurant->getUrl());
36
+            }
37
+
38
+            $dom = new DOMDocument();
39
+            @$dom->loadHTML($source);
40
+            $xpath_obj = new DOMXPath($dom);
41
+
42
+            $this->logger->log("Restaurant: <a href='{$restaurant->getUrl()}'>" . $restaurant->getName() . "</a>".$this->logger->newLine());
43
+
44
+            foreach ($restaurant->getXpaths() as $name => $xpath) {
45
+
46
+                $found = $xpath_obj->query($xpath);
47
+
48
+                if ($found === false || $found->length === 0) {
49
+                    continue;
50
+                }
51
+
52
+                $this->logger->log("<b>$name</b>");
53
+                $exists = false;
54
+                foreach ($found->item(0)->childNodes as $elem) {
55
+
56
+                    $meal = trim($elem->nodeValue);
57
+                    if (!empty($meal)) {
58
+                        $this->logger->log("\t<br>$meal\n");
59
+                        $exists = true;
60
+                    }
61
+                }
62
+                if (!$exists) {
63
+                    $this->logger->log($this->logger->newLine()."{}");
64
+                }
65
+                $this->logger->log($this->logger->newLine());
66
+            }
67
+            $this->logger->log($this->logger->newLine());
68
+        }
69
+    }
70
+}
0 71
new file mode 100644
... ...
@@ -0,0 +1,53 @@
0
+<?php
1
+/**
2
+ * Created by IntelliJ IDEA.
3
+ * User: nosko
4
+ * Date: 1/26/13
5
+ * Time: 10:52 PM
6
+ * To change this template use File | Settings | File Templates.
7
+ */
8
+
9
+/**
10
+ * Class representing restaurant
11
+ */
12
+class Restaurant {
13
+
14
+    private $url;
15
+    private $name;
16
+    private $xpaths = array();
17
+
18
+    public function getName() {
19
+        return $this->name;
20
+    }
21
+
22
+    public function getUrl() {
23
+        return $this->url;
24
+    }
25
+
26
+    public function getXpaths() {
27
+        return $this->xpaths;
28
+    }
29
+
30
+    /**
31
+     * @param $name
32
+     * @param $url
33
+     * @param $xpaths
34
+     */
35
+    function __construct($name, $url, $xpaths) {
36
+
37
+        if (empty($url) || empty($xpaths)) {
38
+            throw new InvalidArgumentException("All argument are required");
39
+        }
40
+
41
+        $this->name = $name;
42
+        $this->url = $url;
43
+
44
+        if (is_string($xpaths)) {
45
+            $this->xpaths[] = $xpaths;
46
+        } else if (is_array($xpaths)) {
47
+            $this->xpaths = $xpaths;
48
+        } else {
49
+            throw new InvalidArgumentException("Xpaths must be string or array");
50
+        }
51
+    }
52
+}
0 53
new file mode 100644
... ...
@@ -0,0 +1,12 @@
0
+<?php
1
+/**
2
+ * Created by IntelliJ IDEA.
3
+ * User: nosko
4
+ * Date: 1/26/13
5
+ * Time: 10:55 PM
6
+ * To change this template use File | Settings | File Templates.
7
+ */
8
+interface iOutput {
9
+    public function log($message);
10
+    public function display();
11
+}
... ...
@@ -1,65 +1,9 @@
1 1
 <?php
2 2
 
3
-/**
4
- * Class representing restaurant
5
- */
6
-class Restaurant {
3
+require_once "Restaurant.php";
4
+require_once "Output.php";
5
+require_once "Parser.php";
7 6
 
8
-    private $url;
9
-    private $name;
10
-    private $xpaths = array();
11
-
12
-    public function getName() {
13
-        return $this->name;
14
-    }
15
-
16
-    public function getUrl() {
17
-        return $this->url;
18
-    }
19
-
20
-    public function getXpaths() {
21
-        return $this->xpaths;
22
-    }
23
-
24
-    /**
25
-     * @param $name
26
-     * @param $url
27
-     * @param $xpaths
28
-     */
29
-    function __construct($name, $url, $xpaths) {
30
-
31
-        if (empty($url) || empty($xpaths)) {
32
-            throw new InvalidArgumentException("All argument are required");
33
-        }
34
-
35
-        $this->name = $name;
36
-        $this->url = $url;
37
-
38
-        if (is_string($xpaths)) {
39
-            $this->xpaths[] = $xpaths;
40
-        } else if (is_array($xpaths)) {
41
-            $this->xpaths = $xpaths;
42
-        } else {
43
-            throw new InvalidArgumentException("Xpaths must be string or array");
44
-        }
45
-    }
46
-
47
-}
48
-
49
-interface iOutput {
50
-    public function log($message);
51
-    public function display();
52
-}
53
-
54
-class Output implements iOutput {
55
-    protected $output = "";
56
-
57
-    public function log($message) {
58
-        $this->output .= $message;
59
-    }
60
-
61
-    public function display(){}
62
-}
63 7
 
64 8
 class HtmlOutput extends Output  {
65 9
 
... ...
@@ -68,78 +12,21 @@ class HtmlOutput extends Output  {
68 68
     }
69 69
 }
70 70
 
71
-class EmailOutput {
72
-
73
-    public function display(){
74
-        // Send mail
75
-    }
76
-}
77
-
78
-
79
-class Parser {
80
-
81
-    private $restaurants = array();
82
-    private $logger;
71
+class EmailOutput extends Output {
83 72
 
84
-    function __construct($logger, $restaurants) {
73
+    private $outputFile = '/tmp/results.php';
85 74
 
86
-        // Check if logger implements iOutput interface
87
-        if (  !in_array("iOutput", class_implements($logger)) ) {
88
-            throw new InvalidArgumentException("Logger class must implement interface iOutput");
89
-        }
90
-
91
-        $this->logger = $logger;
92
-
93
-        if (empty($restaurants) || !is_array($restaurants)) {
94
-            throw new InvalidArgumentException("Array argument required");
95
-        }
96
-
97
-        $this->restaurants = $restaurants;
75
+    function __construct() {
76
+        file_put_contents($this->outputFile, '');
98 77
     }
99 78
 
100
-    public function parse() {
101
-        foreach ($this->restaurants as $restaurant) {
102
-
103
-            $source = file_get_contents($restaurant->getUrl());
104
-
105
-            if ($source === false) {
106
-                throw new RuntimeException("Can't read source address: " . $restaurant->getUrl());
107
-            }
108
-
109
-            $dom = new DOMDocument();
110
-            @$dom->loadHTML($source);
111
-            $xpath_obj = new DOMXPath($dom);
112
-
113
-            $this->logger->log("Restaurant: <a href='{$restaurant->getUrl()}'>" . $restaurant->getName() . "</a><br>\n");
114
-
115
-            foreach ($restaurant->getXpaths() as $name => $xpath) {
116
-
117
-                $found = $xpath_obj->query($xpath);
118
-
119
-                if ($found === false || $found->length === 0) {
120
-                    continue;
121
-                }
122
-
123
-                $this->logger->log("<b>$name</b>");
124
-                $exists = false;
125
-                foreach ($found->item(0)->childNodes as $elem) {
126
-
127
-                    $meal = trim($elem->nodeValue);
128
-                    if (!empty($meal)) {
129
-                        $this->logger->log("\t<br>$meal\n");
130
-                        $exists = true;
131
-                    }
132
-                }
133
-                if (!$exists) {
134
-                    $this->logger->log("<br>{}");
135
-                }
136
-                $this->logger->log("<br>");
137
-            }
138
-            $this->logger->log("<br>");
139
-        }
79
+    public function log($mesage) {
80
+        file_put_contents($this->outputFile, $mesage, FILE_APPEND | FILE_TEXT);
140 81
     }
141 82
 
142
-
83
+    public function display(){
84
+        // Send mail
85
+    }
143 86
 }
144 87
 
145 88
 $twenties = new Restaurant("Twenties", "http://www.twenties.sk/", array("Polievky" => '//*[@id="article"]/div[2]/p[1]'));
... ...
@@ -152,85 +39,7 @@ $slovak = new Restaurant("Slovak pub", "http://www.arcaderestaurant.sk/articles/
152 152
 
153 153
 
154 154
 $htmlOutput = new HtmlOutput();
155
-$parser = new Parser($htmlOutput, array($twenties, $pulitzer, $slovak));
155
+$emailOutput= new EmailOutput();
156
+$parser     = new Parser($htmlOutput, array($twenties, $pulitzer, $slovak));
156 157
 $parser->parse();
157
-$htmlOutput->display();
158
-
159
-
160
-
161
-/**
162
- * Lebo bez masa nie je den dnom. Maso je sucast jedla, preto chodim jest do
163
- * blizkych malych restauracii.
164
- */
165
-
166
-/*
167
-
168
-$sites  = [
169
-        'Pulitzer'      => 'http://pulitzer.sk/',
170
-        'Twenties'      => 'http://www.twenties.sk/'
171
-];
172
-
173
-$xpaths = [
174
-        'Pulitzer'      => [
175
-                'Polievky'                      =>      '//*[@id="soups"]',
176
-                'Hlavne zradla'         =>      '//*[@id="meals"]'
177
-        ],
178
-        'Twenties'      => [
179
-                'Polievka + hlavne zradla'      => '//*[@id="article"]/div[2]/p[1]'
180
-        ]
181
-];
182
-
183
-$output_file = '/tmp/results.php';
184
-file_put_contents($output_file, '');
185
-
186
-$dom = new DOMDocument();
187
-
188
-foreach ($sites as $restaurant => $site)
189
-{
190
-        @$dom->loadHTML(file_get_contents($site));
191
-        $xpath_obj = new DOMXPath($dom);
192
-
193
-        append_result('V tovarni na jedlo s nazvom *' . $restaurant . "* maju dneska toto: \n");
194
-
195
-        foreach ($xpaths[$restaurant] as $human_meal => $xpath)
196
-        {
197
-                append_result("\t$human_meal:\n");
198
-
199
-                $oh_my_god_here_are_saved_meals = $xpath_obj->query($xpath);
200
-                if ($oh_my_god_here_are_saved_meals === FALSE
201
-                        OR $oh_my_god_here_are_saved_meals->length === 0)
202
-                {
203
-                        continue;
204
-                }
205
-
206
-                $found_meal = FALSE;
207
-        foreach ($oh_my_god_here_are_saved_meals->item(0)->childNodes as $elem)
208
-                {
209
-                        $meal_meal_meal = trim($elem->nodeValue);
210
-                        if (! empty($meal_meal_meal))
211
-                        {
212
-                                append_result("\t\t$meal_meal_meal\n");
213
-                                $found_meal = TRUE;
214
-                        }
215
-                }
216
-
217
-                if (! $found_meal)
218
-                {
219
-                        append_result("\tNevaria!!! Daj mi niekto gulomet, nech ich zabijem!\n");
220
-                }
221
-                else
222
-                {
223
-                        append_result("\n");
224
-                }
225
-        }
226
-}
227
-
228
-append_result("\n\nMake me better on http://git.cinan.sk/obedparser.git/ :) \n");
229
-
230
-function append_result($text)
231
-{
232
-        global $output_file;
233
-        file_put_contents($output_file, $text, FILE_APPEND | FILE_TEXT);
234
-}
235
-
236
-*/
158
+$htmlOutput->display();
237 159
\ No newline at end of file
238 160
new file mode 100644
... ...
@@ -0,0 +1,9 @@
0
+<?xml version="1.0" encoding="UTF-8"?>
1
+<module type="WEB_MODULE" version="4">
2
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
3
+    <exclude-output />
4
+    <content url="file://$MODULE_DIR$" />
5
+    <orderEntry type="sourceFolder" forTests="false" />
6
+  </component>
7
+</module>
8
+