FileSystemStorageObjectProvider
class FileSystemStorageObjectProvider extends AbstractStorageObjectProvider
Class representing a file system object provider.
Methods
Returns the mime type guessers supported by object type.
Construction of the provider requires an {see \SplFileInfo} instance.
Returns the object's full path name.
Returns the object's real full path name.
Returns whether object exists on storage medium.
Returns whether object type is a file.
Returns whether object type is a directory.
Returns whether object type is a link.
Returns whether object type is a executable.
Returns whether object is locally stored.
Returns the object's size in bytes.
Returns the object owning user.
Returns the object owning group.
Returns the object permissions.
Returns whether object is readable.
Returns whether object is writable.
Returns the unix time the object was created.
Returns the unix time the object was accessed.
Returns the unix time the object was modified.
Read contents from the object.
Write contents to the object.
Details
in AbstractStorageObjectProvider at line line 24
mixed
getIdentifier()
Returns the object identifier.
in AbstractStorageObjectProvider at line line 34
string
getUrl()
Returns the object URL.
in AbstractStorageObjectProvider at line line 50
string
getType()
Returns the object type as string.
in AbstractStorageObjectProvider at line line 61
MimeTypeResolverInterface[]
getMimeTypeGuessers()
Returns the mime type guessers supported by object type.
at line line 35
__construct(
SplFileInfo $file)
Construction of the provider requires an {see \SplFileInfo} instance.
at line line 45
string
getPathName()
Returns the object's full path name.
at line line 55
string
getRealPathName()
Returns the object's real full path name.
at line line 65
bool
exists()
Returns whether object exists on storage medium.
at line line 75
bool
isFile()
Returns whether object type is a file.
at line line 85
bool
isDirectory()
Returns whether object type is a directory.
at line line 95
bool
isLink()
Returns whether object type is a link.
at line line 105
bool
isExecutable()
Returns whether object type is a executable.
at line line 115
bool
isLocal()
Returns whether object is locally stored.
at line line 125
int
getSizeAsBytes()
Returns the object's size in bytes.
at line line 135
int
getOwningUser()
Returns the object owning user.
at line line 145
int
getOwningGroup()
Returns the object owning group.
at line line 155
int
getPermissionsAsOctal()
Returns the object permissions.
at line line 165
bool
isReadable()
Returns whether object is readable.
at line line 175
bool
isWritable()
Returns whether object is writable.
at line line 185
int
getCreatedAsUnixTime()
Returns the unix time the object was created.
at line line 195
int
getAccessedAsUnixTime()
Returns the unix time the object was accessed.
at line line 205
int
getModifiedAsUnixTime()
Returns the unix time the object was modified.
at line line 219
string
getContent()
Read contents from the object.
at line line 252
string
setContent(
string $contents)
Write contents to the object.