Located in file /wire/core/PagefileExtra.php
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Pagefile
class also inherits all the methods and properties of: WireData and Wire.
Common
Name | Return | Summary | |
---|---|---|---|
Pagefile | string | No-cache version of httpUrl | |
Pagefile | string | No-cache version of url | |
Pagefile Pagefile Pagefile | string | Return just the basename (no path) Can also be used as property: Pagefile | |
Pagefile Pagefile Pagefile | bool | Create the extra file | |
Pagefile Pagefile Pagefile | bool | Does the extra file currently exist? Can also be used as property: Pagefile | |
Pagefile | string | Alias of extension | |
Pagefile | string | File extension | |
Pagefile Pagefile Pagefile | string | Return the full server disk path to the extra file, whether it exists or not Can also be used as property: Pagefile | |
Pagefile Pagefile Pagefile | int | Return the file size in bytes Can also be used as property: Pagefile | |
Pagefile Pagefile Pagefile | string | Return human readable file size string Can also be used as property: Pagefile | |
Pagefile Pagefile Pagefile | bool int mixed null string | Get property | |
Pagefile Pagefile Pagefile | string | Return the HTTP URL to the extra file Can also be used as property: Pagefile | |
Pagefile Pagefile Pagefile | string | Get cache busted URL | |
Pagefile | Pagefile Pageimage | Source Pageimage object | |
Pagefile | string | Alias of filename | |
Pagefile Pagefile Pagefile | bool | Rename the extra file to be consistent with Pagefile name | |
Pagefile | int | Bytes saved by this extra | |
Pagefile | string | Percent savings by this extra | |
Pagefile | string | Human readable savings by this extra | |
Pagefile Pagefile Pagefile | (nothing) | Set extension for this extra | |
Pagefile Pagefile Pagefile | (nothing) | Set Pagefile instance this extra is connected to | |
Pagefile Pagefile Pagefile | bool | Unlink/delete the extra file | |
Pagefile Pagefile Pagefile | string | Return the URL to the extra file, creating it if it does not already exist Can also be used as property: Pagefile | |
Pagefile | bool | Use longer filenames that also include the Pagefile’s extension? (default=false) | |
Pagefile | bool | Use source Pagefile URL if extra image does not exist and cannot be created? (default=false) | |
Pagefile | bool | Use source Pagefile URL if extra file is larger than source file? (default=false) |
Additional methods and properties
In addition to the methods and properties above, Pagefile
API reference based on ProcessWire core version 3.0.236