Located in file /site/modules/ProCache/ProCacheFiles.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 ProCacheFiles
class also inherits all the methods and properties of: ProCacheClass and Wire.
Common
Name | Return | Summary | |
---|
ProCacheFiles::filePutContents() ProCacheFiles::filePutContents(string $filename, string $contents) ProCacheFiles::filePutContents(string $filename, string $contents) | bool | Write contents to file | |
ProCacheFiles::mkdir() ProCacheFiles::mkdir(string $path) ProCacheFiles::mkdir(string $path, bool $recursive = false) | bool | Create a directory | |
ProCacheFiles::rename() ProCacheFiles::rename(string $oldName, string $newName) ProCacheFiles::rename(string $oldName, string $newName) | bool | Rename file | |
ProCacheFiles::rmdir() ProCacheFiles::rmdir(string $path, bool $recursive) ProCacheFiles::rmdir(string $path, bool $recursive) | bool | Remove a directory, optionally recursively | |
ProCacheFiles::rmdir2() ProCacheFiles::rmdir2(string $path, bool $recursive) ProCacheFiles::rmdir2(string $path, bool $recursive) | bool | 2-step rmdir: removes a path by first renaming it and then removing it | |
ProCacheFiles::tmpDirCleanup() ProCacheFiles::tmpDirCleanup() ProCacheFiles::tmpDirCleanup() | int | Cleanup any ProCache-tmp dirs that remain in /site/assets/ | |
ProCacheFiles::unlink() ProCacheFiles::unlink(string $filename) ProCacheFiles::unlink(string $filename) | bool | Remove/unlink a file | |
Additional methods and properties
In addition to the methods and properties above, ProCacheFiles also inherits the methods and properties of these classes:
API reference based on ProcessWire core version 3.0.236