StorageObjectProviderInterface
interface StorageObjectProviderInterface
Interface that describes classes representing a file object provider.
Constants
TYPE_FILE |
|
TYPE_DIRECTORY |
|
TYPE_UNKNOWN |
|
Methods
Returns the mime type guessers supported by object type.
Returns the object identifier.
Returns the object URL.
Returns the object's full path name.
Returns the object's real full path name.
Returns whether object exists on storage medium.
Returns the file type.
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
at line line 30
MimeTypeResolverInterface[]
getMimeTypeGuessers()
Returns the mime type guessers supported by object type.
at line line 37
mixed
getIdentifier()
Returns the object identifier.
at line line 44
string
getUrl()
Returns the object URL.
at line line 51
string
getPathName()
Returns the object's full path name.
at line line 58
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 72
string
getType()
Returns the file type.
at line line 79
bool
isFile()
Returns whether object type is a file.
at line line 86
bool
isDirectory()
Returns whether object type is a directory.
at line line 93
bool
isLink()
Returns whether object type is a link.
at line line 100
bool
isExecutable()
Returns whether object type is a executable.
at line line 107
bool
isLocal()
Returns whether object is locally stored.
at line line 114
int
getSizeAsBytes()
Returns the object's size in bytes.
at line line 121
int
getOwningUser()
Returns the object owning user.
at line line 128
int
getOwningGroup()
Returns the object owning group.
at line line 135
int
getPermissionsAsOctal()
Returns the object permissions.
at line line 142
bool
isReadable()
Returns whether object is readable.
at line line 149
bool
isWritable()
Returns whether object is writable.
at line line 156
int
getCreatedAsUnixTime()
Returns the unix time the object was created.
at line line 163
int
getAccessedAsUnixTime()
Returns the unix time the object was accessed.
at line line 170
int
getModifiedAsUnixTime()
Returns the unix time the object was modified.
at line line 177
string
getContent()
Read contents from the object.
at line line 186
string
setContent(
string $contents)
Write contents to the object.