Interface for stream contents.

 Methods

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 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 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

Returns

int

returns complete vfsStream url for this content

url() : string

since 1.2.0

Returns

string

 Constants

 

stream content type: directory

TYPE_DIR 

see \org\bovigo\vfs\getType()
 

stream content type: file

TYPE_FILE 

see \org\bovigo\vfs\getType()