-
The constructor for WOOF_File, to create the object, which requires both the path to the file and its URL.
-
An alias for the WOOF_File::permalink method, to retrieve the absolute URL to this file.
-
An alias for the WOOF_File::permalink method, to retrieve the absolute URL to this file.
-
Returns the name of the file, including extension.
-
A more concise synonym for the WOOF_File::filesizeinbytes method, to retrieve the integer size of the file in bytes.
-
Returns the inode change time of a file as a date value or formatted date string, which is accessed via PHP’s filectime function.
-
Reads the content of the file and returns the string representation of that content.
-
Deletes the file from the file-system, assuming the web user has enough permission to do so.
-
Generates an RSS enclosure tag representing the file.
-
Checks if this file object does indeed point to a valid file path.
-
Returns the extension of the file with or without the period.
-
A utility method to retrieve a grouped list of file types grouped by the “category” of the file.
-
Retrieves the name of the file, sans-extension.
-
Retrieves the full path to the file name in the file system.
-
Retrieves the formatted size of the file on disk.
-
Retrieves the integer size of the file in bytes.
-
Returns a descriptive string of the type of the file.
-
A general purpose method to format an integer containing a file size in bytes into a formatted file size string. .
-
Attempts to infer the path of the given URL in the WordPress content directory. Note: this function is intended for internal use.
-
Retrieves an associative array of info about this file.
-
Retrieves text for an HTML link (anchor) tag pointing to the file, using the name of the file (including extension) as the link text by default.
-
Retrieves the MIME type string for the file.
-
Returns the last modified time of a file as a date value or formatted date string, which is accessed via PHP’s filemtime function.
-
A more concise synonym for the WOOF_File::basename method, to retrieve the name of the file, including extension.
-
A synonym of the WOOF_File::filepath method, to retrieve the full path to the file name in the file system.
-
Retrieves the absolute URL to the file, including the protocol and domain.
-
Returns a string representing the file rendered as a Mustache template for the given data. .
-
Returns a shortened descriptive string of the type of the file.
-
An alias for the WOOF_File::filesize method to retrieve the formatted size of the file on disk.
-
Converts sizes of the form “128M”, “2G”, “1K” to the equivalent integer byte size.
-
An alias of the WOOF_File::delete function to delete the file from the file-system, assuming the web user has enough permission to do so.The unlink word comes from the PHP function name unlink, which this method uses to attempt the delete.
-
Retrieves the URL to the file, which can be a full URL, or root_relative (excluding the protocol and domain).