Class TfFileHandler
Provides methods for handling common file operations.
In some cases, sensitive operations are restricted to a particular directory (for example, file uploads).
- TfFileHandler uses TfMimetypes
		
		
		
		Package: core
Copyright: Simon Wilkinson 2013+ (https://tuskfish.biz)
License: GNU General Public License (GPL) V2
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Uses: trait TfMimetypes Access a list of known / acceptable file mimetypes.
Var: TfValidator $validator Instance of the Tuskfish data validator class.
Located at trust_path/libraries/tuskfish/class/TfFileHandler.php
	
		Copyright: Simon Wilkinson 2013+ (https://tuskfish.biz)
License: GNU General Public License (GPL) V2
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Uses: trait TfMimetypes Access a list of known / acceptable file mimetypes.
Var: TfValidator $validator Instance of the Tuskfish data validator class.
Located at trust_path/libraries/tuskfish/class/TfFileHandler.php
Methods summary
| 
				 public 
				
				
				 | |
| 
				 public 
				boolean
				
				 | |
| 
				 public 
				boolean
				
				 | 
			#
			 clearDirectory( string $filepath )Deletes the contents of a specific directory, subdirectories are unaffected. | 
| 
				 public 
				boolean
				
				 | 
			#
			 deleteDirectory( string $filepath )Destroys a directory and all contents recursively relative to the data_file directory. | 
| 
				 public 
				boolean
				
				 | |
| 
				 public 
				string|boolean
				
				 | 
			#
			 uploadFile( string $filename, string $fieldname )Upload a file to the uploads/image or uploads/media directory and set permissions to 644. | 
Methods used from TfMimetypes
Properties summary
| 
				protected  
				
			 | $validator |