You are here

public function DrupalRemoteStreamWrapper::url_stat in Remote Stream Wrapper 7

Support for stat().

Parameters

$uri: A string containing the URI to get information about.

$flags: A bit mask of STREAM_URL_STAT_LINK and STREAM_URL_STAT_QUIET.

Return value

An array with file status, or FALSE in case of an error - see fstat() for a description of this array.

Overrides StreamWrapperInterface::url_stat

See also

http://php.net/manual/en/streamwrapper.url-stat.php

File

./remote_stream_wrapper.inc, line 382

Class

DrupalRemoteStreamWrapper
Stream wrapper to support local files.

Code

public function url_stat($uri, $flags) {
  $this->uri = $uri;
  if ($flags & STREAM_URL_STAT_QUIET) {
    return @$this
      ->stream_stat();
  }
  else {
    return $this
      ->stream_stat();
  }
}