File
in
Base class for files (exclusing folders)
Tags
Table of Contents
Methods
- __toString() : mixed
- Returns the full file path (path and filename including extension)
- getExtension() : string
- Returns this file's extension
- getFileSystem() : FileSystem
- Returns the FileSystem for this file
- getFullName() : string
- Returns the filename (without path including extension) for this file
- getMimeType() : string
- Returns the MIME type of this file
- getName() : string
- Returns the filename (without path and extension) for this file
- getPath() : string
- Returns the path (without filename) for this file
Methods
__toString()
Returns the full file path (path and filename including extension)
public
__toString() : mixed
getExtension()
Returns this file's extension
public
getExtension() : string
Return values
string —File extension
getFileSystem()
Returns the FileSystem for this file
public
getFileSystem() : FileSystem
Return values
FileSystem —This file's FileSystem
getFullName()
Returns the filename (without path including extension) for this file
public
getFullName() : string
Return values
string —Filename without path including extension
getMimeType()
Returns the MIME type of this file
public
getMimeType() : string
Return values
string —MIME type
getName()
Returns the filename (without path and extension) for this file
public
getName() : string
Return values
string —Filename without path and extension
getPath()
Returns the path (without filename) for this file
public
getPath() : string
Return values
string —Path without filename