@@ 243-264 (lines=22) @@ | ||
240 | return $ret; |
|
241 | } |
|
242 | ||
243 | public function parseFileOptions(Parser $parser, TokensList $list, $keyword = 'FIELDS') |
|
244 | { |
|
245 | ++$list->idx; |
|
246 | ||
247 | if ($keyword === 'FIELDS' || $keyword === 'COLUMNS') { |
|
248 | // parse field options |
|
249 | $this->fields_options = OptionsArray::parse( |
|
250 | $parser, |
|
251 | $list, |
|
252 | static::$FIELDS_OPTIONS |
|
253 | ); |
|
254 | ||
255 | $this->fields_keyword = ($keyword === 'FIELDS'); |
|
256 | } else { |
|
257 | // parse line options |
|
258 | $this->lines_options = OptionsArray::parse( |
|
259 | $parser, |
|
260 | $list, |
|
261 | static::$LINES_OPTIONS |
|
262 | ); |
|
263 | } |
|
264 | } |
|
265 | ||
266 | /** |
|
267 | * @param IntoKeyword $component the component to be built |
@@ 334-355 (lines=22) @@ | ||
331 | --$list->idx; |
|
332 | } |
|
333 | ||
334 | public function parseFileOptions(Parser $parser, TokensList $list, $keyword = 'FIELDS') |
|
335 | { |
|
336 | ++$list->idx; |
|
337 | ||
338 | if ($keyword === 'FIELDS' || $keyword === 'COLUMNS') { |
|
339 | // parse field options |
|
340 | $this->fields_options = OptionsArray::parse( |
|
341 | $parser, |
|
342 | $list, |
|
343 | static::$FIELDS_OPTIONS |
|
344 | ); |
|
345 | ||
346 | $this->fields_keyword = $keyword; |
|
347 | } else { |
|
348 | // parse line options |
|
349 | $this->lines_options = OptionsArray::parse( |
|
350 | $parser, |
|
351 | $list, |
|
352 | static::$LINES_OPTIONS |
|
353 | ); |
|
354 | } |
|
355 | } |
|
356 | ||
357 | public function parseKeywordsAccordingToState($parser, $list, $state) |
|
358 | { |