Lines Matching defs:line
28 /** @var int current line number */
29 protected $line = 0;
92 * Get a parsed line from the opened CSV file
110 $this->line++;
145 $this->line++;
174 * Read and validate CSV parsed line
176 * @param $line
179 protected function readLine($line)
184 if (!isset($line[$i])) throw new StructException('Missing field at CSV line %d', $this->line);
186 if (!$this->validateValue($column, $line[$i])) return false;
190 if ($line[$i][0] === '[') {
191 $line[$i] = preg_split('/,(?=\[)/', $line[$i]);
193 $line[$i] = array_map('trim', explode(',', $line[$i]));
197 $values[] = $line[$i];
204 * Save one CSV line into database
206 * @param string[] $values parsed line values
231 * Imports one line into the schema
233 * @param string[] $line the parsed CSV line
235 protected function importLine($line)
238 $values = $this->readLine($line);