vfsStreamAbstractContent.php

Show: inherited
Table of Contents

Base stream contents container.

Package
bovigo_vfs  

\vfsStreamAbstractContent

Package: bovigo\vfs

Base stream contents container.

Parent(s)
\vfsStreamContent
Children
\vfsStreamDirectory
\vfsStreamFile

Properties

Propertyprotectedint  $group= ''

owner group of the file

Details
Type
int
Propertyprotectedint  $lastAccessed= ''

timestamp of last access

Details
Type
int
Propertyprotectedint  $lastAttributeModified= ''

timestamp of last attribute modification

Details
Type
int
Propertyprotectedint  $lastModified= ''

timestamp of last modification

Details
Type
int
Propertyprotectedstring  $name= ''

name of the container

Details
Type
string
Propertyprotectedint  $permissions= ''

permissions for content

Details
Type
int
Propertyprotectedstring  $type= ''

type of the container

Details
Type
string
Propertyprotectedint  $user= ''

owner of the file

Details
Type
int

Methods

methodpublic__construct( string $name, int $permissions = null ) : void

constructor

Parameters
Name Type Description
$name string
$permissions int

optional

methodpublicappliesTo( string $name ) : bool

checks whether the container can be applied to given name

Parameters
Name Type Description
$name string
Returns
Type Description
bool
methodpublicat( \vfsStreamContainer $container ) : \vfsStreamContent

adds content to given container

Parameters
Name Type Description
$container \vfsStreamContainer
Returns
Type Description
\vfsStreamContent
methodpublicchgrp( int $group ) : \vfsStreamContent

change owner group of file to given group

Parameters
Name Type Description
$group int
Returns
Type Description
\vfsStreamContent
methodpublicchmod( int $permissions ) : \vfsStreamContent

change file mode to given permissions

Parameters
Name Type Description
$permissions int
Returns
Type Description
\vfsStreamContent
methodpublicchown( int $user ) : \vfsStreamContent

change owner of file to given user

Parameters
Name Type Description
$user int
Returns
Type Description
\vfsStreamContent
methodpublicfileatime( ) : int

returns the last access time of the stream content

Returns
Type Description
int
Details
Since
0.9  
methodpublicfilectime( ) : int

returns the last attribute modification time of the stream content

Returns
Type Description
int
Details
Since
0.9  
methodpublicfilemtime( ) : int

returns the last modification time of the stream content

Returns
Type Description
int
methodprotectedgetDefaultPermissions( ) : int
abstract

returns default permissions for concrete implementation

Returns
Type Description
int
Details
Since
0.8.0  
methodpublicgetGroup( ) : int

returns owner group of file

Returns
Type Description
int
methodpublicgetName( ) : string

returns the file name of the content

Returns
Type Description
string
methodpublicgetPermissions( ) : int

returns permissions

Returns
Type Description
int
methodpublicgetType( ) : int

returns the type of the container

Returns
Type Description
int
methodpublicgetUser( ) : int

returns owner of file

Returns
Type Description
int
methodpublicisExecutable( int $user, int $group ) : bool

checks whether content is executable

Parameters
Name Type Description
$user int

id of user to check for

$group int

id of group to check for

Returns
Type Description
bool
methodpublicisOwnedByGroup( int $group ) : bool

checks whether file is owned by group

Parameters
Name Type Description
$group int
Returns
Type Description
bool
methodpublicisOwnedByUser( int $user ) : bool

checks whether file is owned by given user

Parameters
Name Type Description
$user int
Returns
Type Description
bool
methodpublicisReadable( int $user, int $group ) : bool

checks whether content is readable

Parameters
Name Type Description
$user int

id of user to check for

$group int

id of group to check for

Returns
Type Description
bool
methodpublicisWritable( int $user, int $group ) : bool

checks whether content is writable

Parameters
Name Type Description
$user int

id of user to check for

$group int

id of group to check for

Returns
Type Description
bool
methodpubliclastAccessed( int $fileatime ) : \vfsStreamContent

sets last access time of the stream content

Parameters
Name Type Description
$fileatime int
Returns
Type Description
\vfsStreamContent
Details
Since
0.9  
methodpubliclastAttributeModified( int $filectime ) : \vfsStreamContent

sets the last attribute modification time of the stream content

Parameters
Name Type Description
$filectime int
Returns
Type Description
\vfsStreamContent
Details
Since
0.9  
methodpubliclastModified( int $filemtime ) : \vfsStreamContent

sets the last modification time of the stream content

Parameters
Name Type Description
$filemtime int
Returns
Type Description
\vfsStreamContent
methodpublicrename( string $newName ) : void

renames the content

Parameters
Name Type Description
$newName string
Documentation was generated by DocBlox 0.18.1.