class FileSystemStorageObjectProvider extends AbstractStorageObjectProvider

Class representing a file system object provider.

Methods

mixed
getIdentifier()

Returns the object identifier.

string
getUrl()

Returns the object URL.

string
getType()

Returns the object type as string.

getMimeTypeGuessers()

Returns the mime type guessers supported by object type.

__construct( SplFileInfo $file)

Construction of the provider requires an {see \SplFileInfo} instance.

string
getPathName()

Returns the object's full path name.

string
getRealPathName()

Returns the object's real full path name.

bool
exists()

Returns whether object exists on storage medium.

bool
isFile()

Returns whether object type is a file.

bool
isDirectory()

Returns whether object type is a directory.

bool
isLink()

Returns whether object type is a link.

bool
isExecutable()

Returns whether object type is a executable.

bool
isLocal()

Returns whether object is locally stored.

int
getSizeAsBytes()

Returns the object's size in bytes.

int
getOwningUser()

Returns the object owning user.

int
getOwningGroup()

Returns the object owning group.

int
getPermissionsAsOctal()

Returns the object permissions.

bool
isReadable()

Returns whether object is readable.

bool
isWritable()

Returns whether object is writable.

int
getCreatedAsUnixTime()

Returns the unix time the object was created.

int
getAccessedAsUnixTime()

Returns the unix time the object was accessed.

int
getModifiedAsUnixTime()

Returns the unix time the object was modified.

string
getContent()

Read contents from the object.

string
setContent( string $contents)

Write contents to the object.

Details

mixed getIdentifier()

Returns the object identifier.

Return Value

mixed

string getUrl()

Returns the object URL.

Return Value

string

string getType()

Returns the object type as string.

Return Value

string

MimeTypeResolverInterface[] getMimeTypeGuessers()

Returns the mime type guessers supported by object type.

Return Value

MimeTypeResolverInterface[]

at line line 35
__construct( SplFileInfo $file)

Construction of the provider requires an {see \SplFileInfo} instance.

Parameters

SplFileInfo $file

at line line 45
string getPathName()

Returns the object's full path name.

Return Value

string

at line line 55
string getRealPathName()

Returns the object's real full path name.

Return Value

string

at line line 65
bool exists()

Returns whether object exists on storage medium.

Return Value

bool

at line line 75
bool isFile()

Returns whether object type is a file.

Return Value

bool

at line line 85
bool isDirectory()

Returns whether object type is a directory.

Return Value

bool

Returns whether object type is a link.

Return Value

bool

at line line 105
bool isExecutable()

Returns whether object type is a executable.

Return Value

bool

at line line 115
bool isLocal()

Returns whether object is locally stored.

Return Value

bool

at line line 125
int getSizeAsBytes()

Returns the object's size in bytes.

Return Value

int

at line line 135
int getOwningUser()

Returns the object owning user.

Return Value

int

at line line 145
int getOwningGroup()

Returns the object owning group.

Return Value

int

at line line 155
int getPermissionsAsOctal()

Returns the object permissions.

Return Value

int

at line line 165
bool isReadable()

Returns whether object is readable.

Return Value

bool

at line line 175
bool isWritable()

Returns whether object is writable.

Return Value

bool

at line line 185
int getCreatedAsUnixTime()

Returns the unix time the object was created.

Return Value

int

at line line 195
int getAccessedAsUnixTime()

Returns the unix time the object was accessed.

Return Value

int

at line line 205
int getModifiedAsUnixTime()

Returns the unix time the object was modified.

Return Value

int

at line line 219
string getContent()

Read contents from the object.

at line line 252
string setContent( string $contents)

Write contents to the object.

Parameters

string $contents

Return Value

string

Exceptions

NotFoundException
NotAccessibleException
NotWritableException