Provides access to file and image data
This is the code documentation for the SproutCMS project
Search documentation |
class FileControllerProvides access to file and image data
Functions
public downloadvoid $FileController->download ( int $id [, string $size ] ); Renders file contents for viewing or downloading public nameLookupvoid $FileController->nameLookup ( ); Looks up filenames for a list of file IDs public playAudiovoid $FileController->playAudio ( mixed $filename ); Outputs an audio player. public redirectResizevoid $FileController->redirectResize ( string $size , string $filename ); Redirect to the resize url This allows JS code to use a common URL without needing to be aware of which FilesBackend is in use public resizevoid $FileController->resize ( mixed $size , mixed $filename ); On the fly image resizing The size parameter is the new size. The first character is taken to be the resize type, accepts 'r' or 'c' or 'm': Meaning 'r'esize, 'c'rop or 'm'ax resize (do not scale up). The width and height is specified width . 'x' . height (e.g. 200x100) |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Wednesday, 5th August, 2026 at 03:31 pm |
|