PHP Interface org\bovigo\vfs\vfsStreamContent

Afficher le fichier Open project: mikey179/vfsstream Interface Usage Examples

Méthodes publiques

Méthode Description
appliesTo ( string $name ) : boolean checks whether the container can be applied to given name
at ( org\bovigo\vfs\vfsStreamContainer $container ) : org\bovigo\vfs\vfsStreamContent adds content to given container
chgrp ( integer $group ) : org\bovigo\vfs\vfsStreamContent change owner group of file to given group
chmod ( integer $permissions ) : org\bovigo\vfs\vfsStreamContent change file mode to given permissions
chown ( integer $user ) : org\bovigo\vfs\vfsStreamContent change owner of file to given user
filemtime ( ) : integer returns the last modification time of the stream content
getGroup ( ) : integer returns owner group of file
getName ( ) : string returns the file name of the content
getPermissions ( ) : integer returns permissions
getType ( ) : integer returns the type of the container
getUser ( ) : integer returns owner of file
isExecutable ( integer $user, integer $group ) : boolean checks whether content is executable
isOwnedByGroup ( integer $group ) : boolean checks whether file is owned by group
isOwnedByUser ( integer $user ) : boolean checks whether file is owned by given user
isReadable ( integer $user, integer $group ) : boolean checks whether content is readable
isWritable ( integer $user, integer $group ) : boolean checks whether content is writable
lastModified ( integer $filemtime ) : org\bovigo\vfs\vfsStreamContent sets the last modification time of the stream content
path ( ) : string returns path to this content
rename ( string $newName ) renames the content
setParentPath ( string $parentPath ) sets parent path
size ( ) : integer returns size of content
url ( ) : string returns complete vfsStream url for this content

Method Details

appliesTo() public méthode

checks whether the container can be applied to given name
public appliesTo ( string $name ) : boolean
$name string
Résultat boolean

at() public méthode

adds content to given container
public at ( org\bovigo\vfs\vfsStreamContainer $container ) : org\bovigo\vfs\vfsStreamContent
$container org\bovigo\vfs\vfsStreamContainer
Résultat org\bovigo\vfs\vfsStreamContent

chgrp() public méthode

change owner group of file to given group
public chgrp ( integer $group ) : org\bovigo\vfs\vfsStreamContent
$group integer
Résultat org\bovigo\vfs\vfsStreamContent

chmod() public méthode

change file mode to given permissions
public chmod ( integer $permissions ) : org\bovigo\vfs\vfsStreamContent
$permissions integer
Résultat org\bovigo\vfs\vfsStreamContent

chown() public méthode

change owner of file to given user
public chown ( integer $user ) : org\bovigo\vfs\vfsStreamContent
$user integer
Résultat org\bovigo\vfs\vfsStreamContent

filemtime() public méthode

returns the last modification time of the stream content
public filemtime ( ) : integer
Résultat integer

getGroup() public méthode

returns owner group of file
public getGroup ( ) : integer
Résultat integer

getName() public méthode

returns the file name of the content
public getName ( ) : string
Résultat string

getPermissions() public méthode

returns permissions
public getPermissions ( ) : integer
Résultat integer

getType() public méthode

returns the type of the container
public getType ( ) : integer
Résultat integer

getUser() public méthode

returns owner of file
public getUser ( ) : integer
Résultat integer

isExecutable() public méthode

checks whether content is executable
public isExecutable ( integer $user, integer $group ) : boolean
$user integer id of user to check for
$group integer id of group to check for
Résultat boolean

isOwnedByGroup() public méthode

checks whether file is owned by group
public isOwnedByGroup ( integer $group ) : boolean
$group integer
Résultat boolean

isOwnedByUser() public méthode

checks whether file is owned by given user
public isOwnedByUser ( integer $user ) : boolean
$user integer
Résultat boolean

isReadable() public méthode

checks whether content is readable
public isReadable ( integer $user, integer $group ) : boolean
$user integer id of user to check for
$group integer id of group to check for
Résultat boolean

isWritable() public méthode

checks whether content is writable
public isWritable ( integer $user, integer $group ) : boolean
$user integer id of user to check for
$group integer id of group to check for
Résultat boolean

lastModified() public méthode

sets the last modification time of the stream content
public lastModified ( integer $filemtime ) : org\bovigo\vfs\vfsStreamContent
$filemtime integer
Résultat org\bovigo\vfs\vfsStreamContent

path() public méthode

returns path to this content
Since: 1.2.0
public path ( ) : string
Résultat string

rename() public méthode

renames the content
public rename ( string $newName )
$newName string

setParentPath() public méthode

sets parent path
Since: 1.2.0
public setParentPath ( string $parentPath )
$parentPath string

size() public méthode

returns size of content
public size ( ) : integer
Résultat integer

url() public méthode

returns complete vfsStream url for this content
Since: 1.2.0
public url ( ) : string
Résultat string