Lines Matching refs:opt
51 $opt = helper_plugin_csv::getDefaultOpt();
71 $opt['file'] = $option;
73 $opt[$option] = $value;
78 if ($opt['delim'] == 'tab') $opt['delim'] = "\t";
81 if ($opt['file'] !== '' && !preg_match('/^https?:\/\//i', $opt['file'])) {
82 resolve_mediaid($INFO['namespace'] ?? '', $opt['file'], $exists);
97 $opt['filter'][$col - 1] = $text; // use zero based index internally
102 list($c, $r) = array_pad(explode(',', $opt['output']), 2, 0);
103 $opt['outc'] = (int)$c;
104 $opt['outr'] = (int)$r;
105 if ($opt['outc']) $opt['outc'] -= 1;
106 if ($opt['outr']) $opt['outr'] -= 1;
107 unset($opt['output']);
109 return $opt;
145 * @param array $opt
148 public static function prepareData($content, $opt) argument
153 …$row = helper_plugin_csv::csv_explode_row($content, $opt['delim'], $opt['enclosure'], $opt['escape…
161 if ($line < $opt['hdr_rows']) {
164 } elseif ($opt['offset'] && $line < $opt['offset'] + $opt['hdr_rows']) {
166 } elseif ($opt['maxlines'] && $line >= $opt['maxlines'] + $opt['hdr_rows']) {
172 foreach ($opt['filter'] as $col => $filter) {
186 …$row = helper_plugin_csv::csv_explode_row($content, $opt['delim'], $opt['enclosure'], $opt['escape…