Lines Matching refs:filePath

41      * @param  string $filePath Path of the file to be read
44 abstract protected function openReader($filePath); argument
105 * @param string $filePath Path of the file to be read
109 public function open($filePath) argument
111 …if ($this->isStreamWrapper($filePath) && (!$this->doesSupportStreamWrapper() || !$this->isSupporte…
112 …throw new IOException("Could not open $filePath for reading! Stream wrapper used is not supported …
115 if (!$this->isPhpStream($filePath)) {
117 if (!$this->globalFunctionsHelper->file_exists($filePath)) {
118 throw new IOException("Could not open $filePath for reading! File does not exist.");
120 if (!$this->globalFunctionsHelper->is_readable($filePath)) {
121 … throw new IOException("Could not open $filePath for reading! File is not readable.");
126 $fileRealPath = $this->getFileRealPath($filePath);
130 … throw new IOException("Could not open $filePath for reading! ({$exception->getMessage()})");
138 * @param string $filePath
141 protected function getFileRealPath($filePath) argument
143 if ($this->isSupportedStreamWrapper($filePath)) {
144 return $filePath;
148 return \realpath($filePath);
155 * @param string $filePath Path of the file to be read
158 protected function getStreamWrapperScheme($filePath) argument
161 if (\preg_match('/^(\w+):\/\//', $filePath, $matches)) {
172 * @param string $filePath Path of the file to be read
175 protected function isStreamWrapper($filePath) argument
177 return ($this->getStreamWrapperScheme($filePath) !== null);
185 * @param string $filePath Path of the file to be read
188 protected function isSupportedStreamWrapper($filePath) argument
190 $streamScheme = $this->getStreamWrapperScheme($filePath);
200 * @param string $filePath Path of the file to be read
203 protected function isPhpStream($filePath) argument
205 $streamScheme = $this->getStreamWrapperScheme($filePath);