Base stream contents container.

 Methods

constructor

__construct(string $name, int $permissions) 

Parameters

$name

string

$permissions

int

optional

checks whether the container can be applied to given name

appliesTo(string $name) : bool

Parameters

$name

string

Returns

bool

adds content to given container

at(\org\bovigo\vfs\vfsStreamContainer $container) : \org\bovigo\vfs\vfsStreamContent

change owner group of file to given group

chgrp(int $group) : \org\bovigo\vfs\vfsStreamContent

Parameters

$group

int

Returns

change file mode to given permissions

chmod(int $permissions) : \org\bovigo\vfs\vfsStreamContent

Parameters

$permissions

int

Returns

change owner of file to given user

chown(int $user) : \org\bovigo\vfs\vfsStreamContent

Parameters

$user

int

Returns

returns the last access time of the stream content

fileatime() : int

since 0.9

Returns

int

returns the last attribute modification time of the stream content

filectime() : int

since 0.9

Returns

int

returns the last modification time of the stream content

filemtime() : int

Returns

int

returns owner group of file

getGroup() : int

Returns

int

returns the file name of the content

getName() : string

Returns

string

returns permissions

getPermissions() : int

Returns

int

returns the type of the container

getType() : int

Returns

int

returns owner of file

getUser() : int

Returns

int

checks whether content is executable

isExecutable(int $user, int $group) : bool

Parameters

$user

int

id of user to check for

$group

int

id of group to check for

Returns

bool

checks whether file is owned by group

isOwnedByGroup(int $group) : bool

Parameters

$group

int

Returns

bool

checks whether file is owned by given user

isOwnedByUser(int $user) : bool

Parameters

$user

int

Returns

bool

checks whether content is readable

isReadable(int $user, int $group) : bool

Parameters

$user

int

id of user to check for

$group

int

id of group to check for

Returns

bool

checks whether content is writable

isWritable(int $user, int $group) : bool

Parameters

$user

int

id of user to check for

$group

int

id of group to check for

Returns

bool

sets last access time of the stream content

lastAccessed(int $fileatime) : \org\bovigo\vfs\vfsStreamContent

since 0.9

Parameters

$fileatime

int

Returns

sets the last attribute modification time of the stream content

lastAttributeModified(int $filectime) : \org\bovigo\vfs\vfsStreamContent

since 0.9

Parameters

$filectime

int

Returns

sets the last modification time of the stream content

lastModified(int $filemtime) : \org\bovigo\vfs\vfsStreamContent

Parameters

$filemtime

int

Returns

returns path to this content

path() : string

since 1.2.0

Returns

string

renames the content

rename(string $newName) 

Parameters

$newName

string

returns size of content

size() : int
Inherited

inherited_from \org\bovigo\vfs\vfsStreamContent::size()

Returns

int

returns complete vfsStream url for this content

url() : string

since 1.2.0

Returns

string

returns default permissions for concrete implementation

getDefaultPermissions() : int

since 0.8.0

Returns

int

 Properties

 

owner group of the file

$group 

type int
 

timestamp of last access

$lastAccessed 

type int
 

timestamp of last attribute modification

$lastAttributeModified 

type int
 

timestamp of last modification

$lastModified 

type int
 

name of the container

$name 

type string
 

permissions for content

$permissions 

type int
 

type of the container

$type 

type string
 

owner of the file

$user 

type int
 

path to to this content

$parentPath 

type string

 Constants

 

stream content type: directory

TYPE_DIR 
Inherited

see \org\bovigo\vfs\getType()
inherited_from \org\bovigo\vfs\vfsStreamContent::TYPE_DIR
 

stream content type: file

TYPE_FILE 
Inherited

see \org\bovigo\vfs\getType()
inherited_from \org\bovigo\vfs\vfsStreamContent::TYPE_FILE