API results for “files”

101 to 125 of 142

PagefilesManager::replaceFiles(string $fromPath, bool $move = false) class.method
Replace all page’s files with those from given path

PagefilesManager::moveFiles($toPath) class.method
Recursively move all files managed by this PagefilesManager into a new path.

PagefilesManager::emptyPath(bool $rmdir = false, bool $recursive = true) class.method
Empty out the published files (delete all of them)

PagefilesManager::emptyAllPaths() class.method
Empties all file paths related to the Page, and removes the directories

PagefilesManager::path() class.method
Get the published path for files

PagefilesManager::url() class.method
Get the published URL for files

PagefilesManager::save() class.method
For hooks to listen to on page save action, for file-specific operations

PagefilesManager::hasPath(Page $page) class.method
Returns true if Page has a files path that exists.

PagefilesManager::hasFiles(Page $page) class.method
Returns true if Page has a path and files, false if not.

PagefilesManager::hasFile(Page $page, string $file, bool $getPathname = false) class.method
Does given Page have the given file? Checks in a silent manner, not creating anything.

PagefilesManager::dirToPageID(string $dir) class.method
Given a dir (URL or path) to a files directory, return the page ID associated with it.

PagefilesManager::getTempPath() class.method
Return a path where temporary files can be stored unique to this ProcessWire instance

$forms->getFilesPath(bool $tmp = false, bool $create = true) class.method
Return path that FormBuilder uses for storing files

$procache->getFiles() class.method
Get instance of ProCacheFiles

$procache->getCachePath($page = null, array $options = []) class.method
Return the path where we store cache files (optionally for a specific page)

$procache->clearPages(PageArray $items, bool $getFiles = true) class.method
Clear the cache for multiple pages

$procache->merge($files, bool $minify = true) class.method
Merge the given array or CSV string of file URLs and returned the merged file URL

$procache->css($files, bool $minify = true) class.method
Merge and minify the given array or CSV string of CSS, SCSS or LESS file URLs

$procache->js($files, bool $minify = true) class.method
Merge and minify the given array or CSV string of Javascript file URLs

$procache->link($files, bool $minify = true, string $media = '') class.method
Generate an HTML stylesheet `` tag with the given CSS/LESS/SCSS file URLs

$procache->script($files, bool $minify = true, string $type = '') class.method
Generate an HTML Javascript `