Lines Matching refs:this

44 		$this->fp = fopen($file_name, $open_mode, $use_include_path, $context);
45 if (!$this->fp)
49 $this->fname = $file_name;
57 return feof($this->fp);
65 $this->freeLine();
66 $this->lnum++;
67 $buf = fgets($this->fp, $this->max_len);
79 $this->freeLine();
80 $this->lnum++;
84 $delimiter = $this->delimiter;
86 $enclosure = $this->enclosure;
91 return fgetcsv($this->fp, $this->max_len, $delimiter, $enclosure);
102 $this->delimiter = $delimiter;
103 $this->enclosure = $enclosure;
111 return array($this->delimiter, $this->enclosure);
120 return flock($this->fp, $operation, $wouldblock);
129 return fflush($this->fp);
137 return ftell($this->fp);
148 return fseek($this->fp, $pos, $whence);
153 * @note a new line character does not increase $this->lnum
157 $this->freeLine();
158 $c = fgetc($this->fp);
160 $this->lnum++;
169 return fpassthru($this->fp);
177 return fgetss($this->fp, $allowable_tags);
185 $this->freeLine();
186 $this->lnum++;
187 return fscanf($this->fp, $format /* , ... */);
196 return fwrite($this->fp, $length);
204 return fstat($this->fp);
212 return ftruncate($this->fp, $size);
220 $this->flags = $flags;
228 return $this->flags;
236 $this->max_len = $max_len;
244 return $this->max_len;
268 $this->freeLine();
269 $this->lnum = 0;
277 return !$this->eof();
286 if (is_null($this->line))
288 $this->line = getCurrentLine();
290 return $this->line;
303 return $this->lnum;
310 $this->freeLine();
318 if ($this->eof())
320 $this->freeLine();
321 throw new RuntimeException("Cannot read from file " . $this->fname);
323 if ($this->line) {
324 $this->lnum++;
326 $this->freeLine();
327 $this->line = fgets($this->fp, $this->max_len);
328 return $this->line;
336 if ($this->line) {
337 $this->line = NULL;
342 * @note If you DO overload this function key() and current() will increment
343 * $this->lnum automatically. If not then function reaLine() will do
348 $this->freeLine();
349 if ($this->eof())
351 throw new RuntimeException("Cannot read from file " . $this->fname);
353 $this->readLine();
365 * @param $line_pos Seek to this line
369 $this->rewind();
370 while($this->lnum < $line_pos && !$this->eof())
372 $this->getCurrentLine();