Lines Matching refs:opt
55 $opt = helper_plugin_csv::getDefaultOpt();
75 $opt['file'] = $option;
77 $opt[$option] = $value;
82 if ($opt['delim'] == 'tab') $opt['delim'] = "\t";
85 if ($opt['file'] !== '' && !preg_match('/^https?:\/\//i', $opt['file'])) {
87 $opt['file'] = $resolver->resolveId($opt['file']);
102 $opt['filter'][$col - 1] = $text; // use zero based index internally
107 [$c, $r] = array_pad(explode(',', $opt['output']), 2, 0);
108 $opt['outc'] = (int)$c;
109 $opt['outr'] = (int)$r;
110 if ($opt['outc']) $opt['outc'] -= 1;
111 if ($opt['outr']) $opt['outr'] -= 1;
112 unset($opt['output']);
114 return $opt;
149 * @param array $opt
152 public static function prepareData($content, $opt) argument
157 …$row = helper_plugin_csv::csvExplodeRow($content, $opt['delim'], $opt['enclosure'], $opt['escape']…
165 if ($line < $opt['hdr_rows']) {
168 } elseif ($opt['offset'] && $line < $opt['offset'] + $opt['hdr_rows']) {
170 } elseif ($opt['maxlines'] && $line >= $opt['maxlines'] + $opt['hdr_rows']) {
176 foreach ($opt['filter'] as $col => $filter) {
190 …$row = helper_plugin_csv::csvExplodeRow($content, $opt['delim'], $opt['enclosure'], $opt['escape']…