Class CRUDSimpleFilesystemFileProcessor
	
	This interface is used to handle file uploads.
	 
	
		- 
CRUDlex\CRUDSimpleFilesystemFileProcessor			
			 implements 
				CRUDlex\CRUDFileProcessorInterface
			
			
		
 
	
	
		
		
		Namespace: CRUDlex
		
			Located at CRUDSimpleFilesystemFileProcessor.php		
	
 
	
	Methods summary
	
		
			 protected 
			string
			
			
		 | 
		
		#
		getPath( string $entityName, CRUDlex\CRUDEntity $entity, string $field )
		
			Constructs a file system path for the given parameters for storing the
file of the file field. 
		 
		
			Constructs a file system path for the given parameters for storing the
file of the file field. 
				Parameters
				
					- $entityName
 
					- the entity name
 
					- $entity
 
					- the entity
 
					- $field
 
					- the file field in the entity
 
				  
				Returns
				
					string the constructed path for storing the file of the file field
				 
		 
		  | 
	
	
		
			 public 
			
			
			
		 | 
		
		#
		createFile( Symfony\Component\HttpFoundation\Request $request, CRUDlex\CRUDEntity $entity, string $entityName, string $field )
		
			Creates the uploaded file of a newly created entity. 
		 
		
			Creates the uploaded file of a newly created entity. 
				Parameters
				
					- $request
 
					- the HTTP request containing the file data
 
					- $entity
 
					- the just created entity
 
					- $entityName
 
					- the name of the entity as this class here is not aware of it
 
					- $field
 
					- the file field
 
				  
				Implementation of
				
		 
		  | 
	
	
		
			 public 
			
			
			
		 | 
		
		#
		updateFile( Symfony\Component\HttpFoundation\Request $request, CRUDlex\CRUDEntity $entity, string $entityName, string $field )
		
			Updates the uploaded file of an updated entity.
For now, this implementation is defensive and doesn't delete ever. 
		 
		
			Updates the uploaded file of an updated entity.
For now, this implementation is defensive and doesn't delete ever. 
				Parameters
				
					- $request
 
					- the HTTP request containing the file data
 
					- $entity
 
					- the updated entity
 
					- $entityName
 
					- the name of the entity as this class here is not aware of it
 
					- $field
 
					- the file field
 
				  
				Implementation of
				
		 
		  | 
	
	
		
			 public 
			
			
			
		 | 
		
		#
		deleteFile( CRUDlex\CRUDEntity $entity, string $entityName, string $field )
		
			Deletes a specific file from an existing entity.
For now, this implementation is defensive and doesn't delete ever. 
		 
		
			Deletes a specific file from an existing entity.
For now, this implementation is defensive and doesn't delete ever. 
				Parameters
				
					- $entity
 
					- the entity to delete the file from
 
					- $entityName
 
					- the name of the entity as this class here is not aware of it
 
					- $field
 
					- the field of the entity containing the file to be deleted
 
				  
				Implementation of
				
		 
		  | 
	
	
		
			 public 
			Symfony\Component\HttpFoundation\Response
			
			
		 | 
		
		#
		renderFile( CRUDlex\CRUDEntity $entity, string $entityName, string $field )
		
			Renders (outputs) a file of an entity. This includes setting headers
like the file size, mimetype and name, too. 
		 
		
			Renders (outputs) a file of an entity. This includes setting headers
like the file size, mimetype and name, too. 
				Parameters
				
					- $entity
 
					- the entity to render the file from
 
					- $entityName
 
					- the name of the entity as this class here is not aware of it
 
					- $field
 
					- the field of the entity containing the file to be rendered
 
				  
				Returns
				
					Symfony\Component\HttpFoundation\Response the HTTP response, likely to be a streamed one
				 
				Implementation of
				
		 
		  |