Lines Matching refs:this
51 $this->setPath($path);
52 $this->magic_quotes = get_magic_quotes_runtime();
65 $this->handle = null;
66 $this->path = $path;
67 $this->name = null;
68 $this->name = $this->getFileName();
76 return $this->path;
84 if ($this->name !== null)
86 return $this->name;
90 return basename($this->getPath());
99 if ($this->handle === null)
101 if (!$this->handle = fopen($this->path, "rb"))
103 …throw new Swift_FileException("Unable to open file '" . $this->path . " for reading. Check the fi…
114 $this->createHandle();
115 return feof($this->handle);
125 $this->createHandle();
126 return $this->read(1);
137 $this->createHandle();
138 if (!$this->EOF())
140 $ret = fgets($this->handle);
144 set_magic_quotes_runtime($this->magic_quotes);
157 while (false !== $chunk = $this->read(8192, false)) $ret .= $chunk;
158 set_magic_quotes_runtime($this->magic_quotes);
170 $this->createHandle();
171 if (!$this->EOF())
173 $ret = fread($this->handle, $bytes);
177 if ($unquote) set_magic_quotes_runtime($this->magic_quotes);
187 return filesize($this->path);
195 $this->createHandle();
196 fclose($this->handle);
197 $this->handle = null;
204 $this->createHandle();
205 fseek($this->handle, 0);
213 if ($this->handle !== null) $this->close();