PHP Class org\bovigo\vfs\vfsStreamAbstractContent

Inheritance: implements org\bovigo\vfs\vfsStreamContent
Datei anzeigen Open project: mikey179/vfsstream Class Usage Examples

Protected Properties

Property Type Description
$group owner group of the file
$lastAccessed timestamp of last access
$lastAttributeModified timestamp of last attribute modification
$lastModified timestamp of last modification
$name name of the container
$permissions permissions for content
$type type of the container
$user owner of the file

Public Methods

Method Description
__construct ( string $name, integer $permissions = null ) constructor
appliesTo ( string $name ) : boolean checks whether the container can be applied to given name
at ( org\bovigo\vfs\vfsStreamContainer $container ) adds content to given container
chgrp ( integer $group ) change owner group of file to given group
chmod ( integer $permissions ) change file mode to given permissions
chown ( integer $user ) change owner of file to given user
fileatime ( ) : integer returns the last access time of the stream content
filectime ( ) : integer returns the last attribute modification time of the stream content
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
lastAccessed ( integer $fileatime ) sets last access time of the stream content
lastAttributeModified ( integer $filectime ) sets the last attribute modification time of the stream content
lastModified ( integer $filemtime ) 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
url ( ) : string returns complete vfsStream url for this content

Protected Methods

Method Description
getDefaultPermissions ( ) : integer returns default permissions for concrete implementation

Method Details

__construct() public method

constructor
public __construct ( string $name, integer $permissions = null )
$name string
$permissions integer optional

appliesTo() public method

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

at() public method

adds content to given container
public at ( org\bovigo\vfs\vfsStreamContainer $container )
$container org\bovigo\vfs\vfsStreamContainer

chgrp() public method

change owner group of file to given group
public chgrp ( integer $group )
$group integer

chmod() public method

change file mode to given permissions
public chmod ( integer $permissions )
$permissions integer

chown() public method

change owner of file to given user
public chown ( integer $user )
$user integer

fileatime() public method

returns the last access time of the stream content
Since: 0.9
public fileatime ( ) : integer
return integer

filectime() public method

returns the last attribute modification time of the stream content
Since: 0.9
public filectime ( ) : integer
return integer

filemtime() public method

returns the last modification time of the stream content
public filemtime ( ) : integer
return integer

getDefaultPermissions() abstract protected method

returns default permissions for concrete implementation
Since: 0.8.0
abstract protected getDefaultPermissions ( ) : integer
return integer

getGroup() public method

returns owner group of file
public getGroup ( ) : integer
return integer

getName() public method

returns the file name of the content
public getName ( ) : string
return string

getPermissions() public method

returns permissions
public getPermissions ( ) : integer
return integer

getType() public method

returns the type of the container
public getType ( ) : integer
return integer

getUser() public method

returns owner of file
public getUser ( ) : integer
return integer

isExecutable() public method

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

isOwnedByGroup() public method

checks whether file is owned by group
public isOwnedByGroup ( integer $group ) : boolean
$group integer
return boolean

isOwnedByUser() public method

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

isReadable() public method

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

isWritable() public method

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

lastAccessed() public method

sets last access time of the stream content
Since: 0.9
public lastAccessed ( integer $fileatime )
$fileatime integer

lastAttributeModified() public method

sets the last attribute modification time of the stream content
Since: 0.9
public lastAttributeModified ( integer $filectime )
$filectime integer

lastModified() public method

sets the last modification time of the stream content
public lastModified ( integer $filemtime )
$filemtime integer

path() public method

returns path to this content
Since: 1.2.0
public path ( ) : string
return string

rename() public method

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

setParentPath() public method

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

url() public method

returns complete vfsStream url for this content
Since: 1.2.0
public url ( ) : string
return string

Property Details

$group protected_oe property

owner group of the file
protected $group

$lastAccessed protected_oe property

timestamp of last access
protected $lastAccessed

$lastAttributeModified protected_oe property

timestamp of last attribute modification
protected $lastAttributeModified

$lastModified protected_oe property

timestamp of last modification
protected $lastModified

$name protected_oe property

name of the container
protected $name

$permissions protected_oe property

permissions for content
protected $permissions

$type protected_oe property

type of the container
protected $type

$user protected_oe property

owner of the file
protected $user