vfsStreamContent.php
Interface for stream contents.
- Package
- bovigo_vfs
\vfsStreamContent
Package: bovigo\vfs
Interface for stream contents.
- Children
- \vfsStreamAbstractContent
Constants
Methods


appliesTo(
string $name
)
:
bool
checks whether the container can be applied to given name
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
bool |


at(
\vfsStreamContainer $container
)
:
\vfsStreamContent
adds content to given container
Parameters
Returns
Name | Type | Description |
---|---|---|
$container | \vfsStreamContainer |
Type | Description |
---|---|
\vfsStreamContent |


chgrp(
int $group
)
:
\vfsStreamContent
change owner group of file to given group
Parameters
Returns
Name | Type | Description |
---|---|---|
$group | int |
Type | Description |
---|---|
\vfsStreamContent |


chmod(
int $permissions
)
:
\vfsStreamContent
change file mode to given permissions
Parameters
Returns
Name | Type | Description |
---|---|---|
$permissions | int |
Type | Description |
---|---|
\vfsStreamContent |


chown(
int $user
)
:
\vfsStreamContent
change owner of file to given user
Parameters
Returns
Name | Type | Description |
---|---|---|
$user | int |
Type | Description |
---|---|
\vfsStreamContent |


filemtime(
)
:
int
returns the last modification time of the stream content
Returns
Type | Description |
---|---|
int |


isExecutable(
int $user, int $group
)
:
bool
checks whether content is executable
Parameters
Returns
Name | Type | Description |
---|---|---|
$user | int | id of user to check for |
$group | int | id of group to check for |
Type | Description |
---|---|
bool |


isOwnedByGroup(
int $group
)
:
bool
checks whether file is owned by group
Parameters
Returns
Name | Type | Description |
---|---|---|
$group | int |
Type | Description |
---|---|
bool |


isOwnedByUser(
int $user
)
:
bool
checks whether file is owned by given user
Parameters
Returns
Name | Type | Description |
---|---|---|
$user | int |
Type | Description |
---|---|
bool |


isReadable(
int $user, int $group
)
:
bool
checks whether content is readable
Parameters
Returns
Name | Type | Description |
---|---|---|
$user | int | id of user to check for |
$group | int | id of group to check for |
Type | Description |
---|---|
bool |


isWritable(
int $user, int $group
)
:
bool
checks whether content is writable
Parameters
Returns
Name | Type | Description |
---|---|---|
$user | int | id of user to check for |
$group | int | id of group to check for |
Type | Description |
---|---|
bool |


lastModified(
int $filemtime
)
:
\vfsStreamContent
sets the last modification time of the stream content
Parameters
Returns
Name | Type | Description |
---|---|---|
$filemtime | int |
Type | Description |
---|---|
\vfsStreamContent |


rename(
string $newName
)
:
void
renames the content
Parameters
Name | Type | Description |
---|---|---|
$newName | string |