Documentation

Statable extends Stream

Interface \Hoa\Stream\IStream\Statable.

Interface for statable input/output.

Tags
copyright

Copyright © 2007-2017 Hoa community

license

New BSD License

Table of Contents

Constants

SIZE_UNDEFINED  = -1
Size is undefined.

Methods

clearAllStatisticCaches()  : void
Clear all files status cache.
clearStatisticCache()  : void
Clear file status cache.
getATime()  : int
Get last access time of file.
getCTime()  : int
Get inode change time of file.
getGroup()  : int
Get file group.
getMTime()  : int
Get file modification time.
getOwner()  : int
Get file owner.
getPermissions()  : int
Get file permissions.
getSize()  : int
Get size.
getStatistic()  : array<string|int, mixed>
Get informations about a file.
getStream()  : resource
Get the current stream.
isExecutable()  : bool
Check if the file is executable.
isReadable()  : bool
Check if the file is readable.
isWritable()  : bool
Check if the file is writable.

Constants

SIZE_UNDEFINED

Size is undefined.

public mixed SIZE_UNDEFINED = -1
Tags
const

int

Methods

clearAllStatisticCaches()

Clear all files status cache.

public static clearAllStatisticCaches() : void

clearStatisticCache()

Clear file status cache.

public clearStatisticCache() : void

getATime()

Get last access time of file.

public getATime() : int
Return values
int

getCTime()

Get inode change time of file.

public getCTime() : int
Return values
int

getGroup()

Get file group.

public getGroup() : int
Return values
int

getMTime()

Get file modification time.

public getMTime() : int
Return values
int

getOwner()

Get file owner.

public getOwner() : int
Return values
int

getPermissions()

Get file permissions.

public getPermissions() : int
Return values
int

getSize()

Get size.

public getSize() : int
Return values
int

getStatistic()

Get informations about a file.

public getStatistic() : array<string|int, mixed>
Return values
array<string|int, mixed>

getStream()

Get the current stream.

public getStream() : resource
Return values
resource

isExecutable()

Check if the file is executable.

public isExecutable() : bool
Return values
bool

isReadable()

Check if the file is readable.

public isReadable() : bool
Return values
bool

isWritable()

Check if the file is writable.

public isWritable() : bool
Return values
bool

        
On this page

Search results