Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



third_party/vfsstream/vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamContent.php

Table of Contents
This file is part of vfsStream.

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Package
org\bovigo\vfs

\org\bovigo\vfs\vfsStreamContent

Package: Default
Interface for stream contents.

Constants

> V Constant TYPE_FILE = 32768
stream content type: file
See
\org\bovigo\vfs\getType()
> V Constant TYPE_DIR = 16384
stream content type: directory
See
\org\bovigo\vfs\getType()

Methods

method public appliesTo (string $name) : bool

checks whether the container can be applied to given name

Parameters
Name Type Description
$name string
Returns
Type Description
bool
method public at ( \org\bovigo\vfs\vfsStreamContainer $container) : \org\bovigo\vfs\vfsStreamContent

adds content to given container

Parameters
Name Type Description
$container \org\bovigo\vfs\vfsStreamContainer
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
method public chgrp (int $group) : \org\bovigo\vfs\vfsStreamContent

change owner group of file to given group

Parameters
Name Type Description
$group int
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
method public chmod (int $permissions) : \org\bovigo\vfs\vfsStreamContent

change file mode to given permissions

Parameters
Name Type Description
$permissions int
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
method public chown (int $user) : \org\bovigo\vfs\vfsStreamContent

change owner of file to given user

Parameters
Name Type Description
$user int
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
method public filemtime () : int

returns the last modification time of the stream content

Returns
Type Description
int
method public getGroup () : int

returns owner group of file

Returns
Type Description
int
method public getName () : string

returns the file name of the content

Returns
Type Description
string
method public getPermissions () : int

returns permissions

Returns
Type Description
int
method public getType () : int

returns the type of the container

Returns
Type Description
int
method public getUser () : int

returns owner of file

Returns
Type Description
int
method public isExecutable (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
method public isOwnedByGroup (int $group) : bool

checks whether file is owned by group

Parameters
Name Type Description
$group int
Returns
Type Description
bool
method public isOwnedByUser (int $user) : bool

checks whether file is owned by given user

Parameters
Name Type Description
$user int
Returns
Type Description
bool
method public isReadable (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
method public isWritable (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
method public lastModified (int $filemtime) : \org\bovigo\vfs\vfsStreamContent

sets the last modification time of the stream content

Parameters
Name Type Description
$filemtime int
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
method public path () : string

returns path to this content

Returns
Type Description
string
Details
Since
1.2.0
method public rename (string $newName) : void

renames the content

Parameters
Name Type Description
$newName string
method public size () : int

returns size of content

Returns
Type Description
int
method public url () : string

returns complete vfsStream url for this content

Returns
Type Description
string
Details
Since
1.2.0
Documentation was generated by phpDocumentor 2.0.0a12 .