Sitellite Application Framework
Class Tree         Index         All Elements

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:

access:  public


Parameters

string   $file  
string   $data  
[ Top ]



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:

access:  public


Parameters

array   $list  
string   $path  
[ Top ]



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:

access:  public


Parameters

string   $file  
string   $data  
[ Top ]



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:

access:  public


Parameters

string   $path  
mixed   $ext  
[ Top ]



Copyright © 2007, SIMIAN systems Inc.
All rights reserved. Privacy policy
Documentation generated on Tue, 13 Feb 2007 17:17:34 -0600 by Sitellite AppDoc and phpDocumentor 1.2.2