vfsStreamAbstractContent.php
Base stream contents container.
- Package
- bovigo_vfs
\vfsStreamAbstractContent
Package: bovigo\vfsBase stream contents container.
- Parent(s)
- \vfsStreamContent
- Children
- \vfsStreamDirectory
- \vfsStreamFile
Properties
Methods



__construct(
string $name, int $permissions
=
null
)
:
void
Parameters
Name |
Type |
Description |
$name |
string |
|
$permissions |
int |
optional |



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



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



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



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



fileatime(
)
:
int
returns the last access time of the stream content
Returns
Details
- Since
- 0.9



filectime(
)
:
int
returns the last attribute modification time of the stream content
Returns
Details
- Since
- 0.9



getDefaultPermissions(
)
:
int
abstractreturns default permissions for concrete implementation
Returns
Details
- Since
- 0.8.0



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



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



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



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



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



lastAccessed(
int $fileatime
)
:
\vfsStreamContent
sets last access time of the stream content
Parameters
Name |
Type |
Description |
$fileatime |
int |
|
Returns
Details
- Since
- 0.9



lastAttributeModified(
int $filectime
)
:
\vfsStreamContent
sets the last attribute modification time of the stream content
Parameters
Name |
Type |
Description |
$filectime |
int |
|
Returns
Details
- Since
- 0.9



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