You are here

protected property MediaReadOnlyStreamWrapper::$_stat in D7 Media 7

Same name and namespace in other branches
  1. 7.4 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::_stat
  2. 7.2 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::_stat
  3. 7.3 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::_stat

"Template" for stat calls. All elements must be initialized.

Type: array

File

includes/MediaReadOnlyStreamWrapper.inc, line 33

Class

MediaReadOnlyStreamWrapper
A base class for Resource Stream Wrappers.

Code

protected $_stat = array(
  0 => 0,
  // device number
  'dev' => 0,
  1 => 0,
  // inode number
  'ino' => 0,
  // inode protection mode. file_unmanaged_delete() requires is_file() to
  // return TRUE.
  2 => self::S_IFREG,
  'mode' => self::S_IFREG,
  3 => 0,
  // number of links
  'nlink' => 0,
  4 => 0,
  // userid of owner
  'uid' => 0,
  5 => 0,
  // groupid of owner
  'gid' => 0,
  6 => -1,
  // device type, if inode device *
  'rdev' => -1,
  7 => 0,
  // size in bytes
  'size' => 0,
  8 => 0,
  // time of last access (Unix timestamp)
  'atime' => 0,
  9 => 0,
  // time of last modification (Unix timestamp)
  'mtime' => 0,
  10 => 0,
  // time of last inode change (Unix timestamp)
  'ctime' => 0,
  11 => -1,
  // blocksize of filesystem IO
  'blksize' => -1,
  12 => -1,
  // number of blocks allocated
  'blocks' => -1,
);