ReadOnlyPhpStreamWrapperTrait.php in Remote Stream Wrapper 8
File
src/StreamWrapper/ReadOnlyPhpStreamWrapperTrait.php
View source
<?php
namespace Drupal\remote_stream_wrapper\StreamWrapper;
trait ReadOnlyPhpStreamWrapperTrait {
public function dir_closedir() {
trigger_error('dir_closedir() not supported for HTTP stream wrappers', E_USER_WARNING);
return FALSE;
}
public function dir_opendir($path, $options) {
trigger_error('dir_opendir() not supported for HTTP stream wrappers', E_USER_WARNING);
return FALSE;
}
public function dir_readdir() {
trigger_error('dir_readdir() not supported for HTTP stream wrappers', E_USER_WARNING);
return FALSE;
}
public function dir_rewinddir() {
trigger_error('dir_rewinddir() not supported for HTTP stream wrappers', E_USER_WARNING);
return FALSE;
}
public function mkdir($path, $mode, $options) {
trigger_error('mkdir() not supported for HTTP stream wrappers', E_USER_WARNING);
return FALSE;
}
public function rename($path_from, $path_to) {
trigger_error('rename() not supported for HTTP stream wrappers', E_USER_WARNING);
return FALSE;
}
public function rmdir($path, $options) {
trigger_error('rmdir() not supported for HTTP stream wrappers', E_USER_WARNING);
return FALSE;
}
public function stream_cast($cast_as) {
trigger_error('stream_cast() not supported for HTTP stream wrappers', E_USER_WARNING);
return FALSE;
}
public function stream_flush() {
return FALSE;
}
public function stream_metadata($path, $option, $value) {
trigger_error('stream_metadata() not supported for HTTP stream wrappers', E_USER_WARNING);
return FALSE;
}
public function stream_truncate($new_size) {
trigger_error('stream_truncate() not supported for HTTP stream wrappers', E_USER_WARNING);
return FALSE;
}
public function stream_write($data) {
trigger_error('stream_write() not supported for HTTP stream wrappers', E_USER_WARNING);
return FALSE;
}
public function unlink($path) {
trigger_error('unlink() not supported for HTTP stream wrappers', E_USER_WARNING);
return TRUE;
}
}