You are here

public function MediaReadOnlyStreamWrapper::chmod in D7 Media 7

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

Changes permissions of the resource.

PHP lacks this functionality and it is not part of the official stream wrapper interface. This is a custom implementation for Drupal.

Parameters

$mode: Integer value for the permissions. Consult PHP chmod() documentation for more information.

Return value

Returns TRUE on success or FALSE on failure.

Overrides DrupalStreamWrapperInterface::chmod

File

includes/MediaReadOnlyStreamWrapper.inc, line 487

Class

MediaReadOnlyStreamWrapper
A base class for Resource Stream Wrappers.

Code

public function chmod($mode) {
  return FALSE;
}