third_party/vfsstream/vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamAbstractContent.php
For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
- Package
- org\bovigo\vfs
\org\bovigo\vfs\vfsStreamAbstractContent
- Implements
- \org\bovigo\vfs\vfsStreamContent
- Children
- \org\bovigo\vfs\vfsStreamDirectory
- \org\bovigo\vfs\vfsStreamFile
- \org\bovigo\vfs\TestvfsStreamAbstractContent
Constants
TYPE_FILE
= 32768
- Inherited_from
- \org\bovigo\vfs\vfsStreamContent::TYPE_FILE
- See
- \org\bovigo\vfs\getType()
TYPE_DIR
= 16384
- Inherited_from
- \org\bovigo\vfs\vfsStreamContent::TYPE_DIR
- See
- \org\bovigo\vfs\getType()
Methods
__construct
(string $name, int $permissions = null)
: void
constructor
Name | Type | Description |
---|---|---|
$name | string | |
$permissions | int |
optional |
appliesTo
(string $name)
: bool
checks whether the container can be applied to given name
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
bool |
at
(
\org\bovigo\vfs\vfsStreamContainer
$container)
:
\org\bovigo\vfs\vfsStreamContent
adds content to given container
Name | Type | Description |
---|---|---|
$container | \org\bovigo\vfs\vfsStreamContainer |
Type | Description |
---|---|
\org\bovigo\vfs\vfsStreamContent |
chgrp
(int $group)
:
\org\bovigo\vfs\vfsStreamContent
change owner group of file to given group
Name | Type | Description |
---|---|---|
$group | int |
Type | Description |
---|---|
\org\bovigo\vfs\vfsStreamContent |
chmod
(int $permissions)
:
\org\bovigo\vfs\vfsStreamContent
change file mode to given permissions
Name | Type | Description |
---|---|---|
$permissions | int |
Type | Description |
---|---|
\org\bovigo\vfs\vfsStreamContent |
chown
(int $user)
:
\org\bovigo\vfs\vfsStreamContent
change owner of file to given user
Name | Type | Description |
---|---|---|
$user | int |
Type | Description |
---|---|
\org\bovigo\vfs\vfsStreamContent |
fileatime
()
: int
returns the last access time of the stream content
Type | Description |
---|---|
int |
- Since
- 0.9
filectime
()
: int
returns the last attribute modification time of the stream content
Type | Description |
---|---|
int |
- Since
- 0.9
filemtime
()
: int
returns the last modification time of the stream content
Type | Description |
---|---|
int |
isExecutable
(int $user, int $group)
: bool
checks whether content is executable
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
Name | Type | Description |
---|---|---|
$group | int |
Type | Description |
---|---|
bool |
isOwnedByUser
(int $user)
: bool
checks whether file is owned by given user
Name | Type | Description |
---|---|---|
$user | int |
Type | Description |
---|---|
bool |
isReadable
(int $user, int $group)
: bool
checks whether content is readable
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
Name | Type | Description |
---|---|---|
$user | int |
id of user to check for |
$group | int |
id of group to check for |
Type | Description |
---|---|
bool |
lastAccessed
(int $fileatime)
:
\org\bovigo\vfs\vfsStreamContent
sets last access time of the stream content
Name | Type | Description |
---|---|---|
$fileatime | int |
Type | Description |
---|---|
\org\bovigo\vfs\vfsStreamContent |
- Since
- 0.9
lastAttributeModified
(int $filectime)
:
\org\bovigo\vfs\vfsStreamContent
sets the last attribute modification time of the stream content
Name | Type | Description |
---|---|---|
$filectime | int |
Type | Description |
---|---|
\org\bovigo\vfs\vfsStreamContent |
- Since
- 0.9
lastModified
(int $filemtime)
:
\org\bovigo\vfs\vfsStreamContent
sets the last modification time of the stream content
Name | Type | Description |
---|---|---|
$filemtime | int |
Type | Description |
---|---|
\org\bovigo\vfs\vfsStreamContent |
rename
(string $newName)
: void
renames the content
Name | Type | Description |
---|---|---|
$newName | string |