public function PharStreamWrapper::stream_metadata in Drupal 7
Parameters
string $path:
int $option:
string|int $value:
Return value
bool
File
- misc/
typo3/ phar-stream-wrapper/ src/ PharStreamWrapper.php, line 208
Class
Namespace
TYPO3\PharStreamWrapperCode
public function stream_metadata($path, $option, $value) {
$this
->assert($path, Behavior::COMMAND_STEAM_METADATA);
if ($option === STREAM_META_TOUCH) {
return call_user_func_array(array(
$this,
'invokeInternalStreamWrapper',
), array_merge(array(
'touch',
$path,
), (array) $value));
}
if ($option === STREAM_META_OWNER_NAME || $option === STREAM_META_OWNER) {
return $this
->invokeInternalStreamWrapper('chown', $path, $value);
}
if ($option === STREAM_META_GROUP_NAME || $option === STREAM_META_GROUP) {
return $this
->invokeInternalStreamWrapper('chgrp', $path, $value);
}
if ($option === STREAM_META_ACCESS) {
return $this
->invokeInternalStreamWrapper('chmod', $path, $value);
}
return false;
}