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/vfsStreamDirectory.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\vfsStreamDirectory

Package: Default
Directory container.
Implements
\org\bovigo\vfs\vfsStreamContainer
Parent(s)
\org\bovigo\vfs\vfsStreamAbstractContent
Api

Constants

> V Constant TYPE_DIR = 16384

Methods

method public __construct (string $name, int $permissions = null) : void

constructor

Parameters
Name Type Description
$name string
$permissions int

optional

Throws
Exception Description
\org\bovigo\vfs\vfsStreamException
method public addChild ( \org\bovigo\vfs\vfsStreamContent $child) : void

adds child to the directory

Parameters
Name Type Description
$child \org\bovigo\vfs\vfsStreamContent
method public appliesTo (string $name) : bool
inherited

checks whether the container can be applied to given name

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

adds content to given container

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::at()
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
inherited

change owner group of file to given group

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

change file mode to given permissions

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

change owner of file to given user

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::chown()
Parameters
Name Type Description
$user int
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
method public fileatime () : int
inherited

returns the last access time of the stream content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::fileatime()
Returns
Type Description
int
Details
Since
0.9
method public filectime () : int
inherited

returns the last attribute modification time of the stream content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::filectime()
Returns
Type Description
int
Details
Since
0.9
method public filemtime () : int
inherited

returns the last modification time of the stream content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::filemtime()
Returns
Type Description
int
method public getChild (string $name) : \org\bovigo\vfs\vfsStreamContent

returns the child with the given name

Parameters
Name Type Description
$name string
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
method public getChildren () : \org\bovigo\vfs\vfsStreamContent[]

returns a list of children for this directory

Returns
Type Description
\org\bovigo\vfs\vfsStreamContent[]
method public getGroup () : int
inherited

returns owner group of file

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::getGroup()
Returns
Type Description
int
method public getIterator () : \org\bovigo\vfs\vfsStreamContainerIterator

returns iterator for the children

method public getName () : string
inherited

returns the file name of the content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::getName()
Returns
Type Description
string
method public getPermissions () : int
inherited

returns permissions

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::getPermissions()
Returns
Type Description
int
method public getType () : int
inherited

returns the type of the container

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::getType()
Returns
Type Description
int
method public getUser () : int
inherited

returns owner of file

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::getUser()
Returns
Type Description
int
method public hasChild (string $name) : bool

checks whether the container contains a child with the given name

Parameters
Name Type Description
$name string
Returns
Type Description
bool
method public hasChildren () : bool

checks whether directory contains any children

Returns
Type Description
bool
Details
Since
0.10.0
method public isExecutable (int $user, int $group) : bool
inherited

checks whether content is executable

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::isExecutable()
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
inherited

checks whether file is owned by group

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::isOwnedByGroup()
Parameters
Name Type Description
$group int
Returns
Type Description
bool
method public isOwnedByUser (int $user) : bool
inherited

checks whether file is owned by given user

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::isOwnedByUser()
Parameters
Name Type Description
$user int
Returns
Type Description
bool
method public isReadable (int $user, int $group) : bool
inherited

checks whether content is readable

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::isReadable()
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
inherited

checks whether content is writable

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::isWritable()
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 lastAccessed (int $fileatime) : \org\bovigo\vfs\vfsStreamContent
inherited

sets last access time of the stream content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::lastAccessed()
Parameters
Name Type Description
$fileatime int
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
Details
Since
0.9
method public lastAttributeModified (int $filectime) : \org\bovigo\vfs\vfsStreamContent
inherited

sets the last attribute modification time of the stream content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::lastAttributeModified()
Parameters
Name Type Description
$filectime int
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
Details
Since
0.9
method public lastModified (int $filemtime) : \org\bovigo\vfs\vfsStreamContent
inherited

sets the last modification time of the stream content

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

returns path to this content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::path()
Returns
Type Description
string
Details
Since
1.2.0
method public removeChild (string $name) : bool

removes child from the directory

Parameters
Name Type Description
$name string
Returns
Type Description
bool
method public rename (string $newName) : void

renames the content

Parameters
Name Type Description
$newName string
Throws
Exception Description
\org\bovigo\vfs\vfsStreamException
method public size () : int

returns size of directory

The size of a directory is always 0 bytes. To calculate the summarized size of all children in the directory use sizeSummarized().

Returns
Type Description
int
method public sizeSummarized () : int

returns summarized size of directory and its children

Returns
Type Description
int
method public url () : string
inherited

returns complete vfsStream url for this content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::url()
Returns
Type Description
string
Details
Since
1.2.0
Documentation was generated by phpDocumentor 2.0.0a12 .