|
Procedural File: File.php
Source Location: Program_Root/File/File.php
Classes:
File
File is a simple class to keep basic file information gathering structured and readable. Stores everything as a property of the class instead of as methods, so that it integrates easily with the Template class.
Page Details:
file_append [line 668]
boolean file_append(
string $file, string $data)
|
|
Append to the specified file (or the file contained in the $absolute property) with the specified $data. Please note that here the parameters are reversed from how they appear in the File class, because the $file parameter is required. This function does not operate on a global instance of File, as some other functions of its type do.
Tags:
Parameters
| string |
$file |
|
| string |
$data |
|
file_determine [line 694]
string file_determine(
array $list, [string $path = false])
|
|
Alias of File::determine(). Returns the first file that exists from the specified list.
Tags:
Parameters
file_overwrite [line 650]
boolean file_overwrite(
string $file, string $data)
|
|
Overwrite the specified file (or the file contained in the $absolute property) with the specified $data. Please note that here the parameters are reversed from how they appear in the File class, because the $file parameter is required. This function does not operate on a global instance of File, as some other functions of its type do.
Tags:
Parameters
| string |
$file |
|
| string |
$data |
|
file_rand [line 681]
string file_rand(
string $path, [mixed $ext = false])
|
|
Alias of File::rand(). Returns a random file from the specified directory.
Tags:
Parameters
|