Bug fixes and consolidation of various thumbnail and resize functionality Changed resize/rotate extensions to use replace image event Added content-disposition header to image responses to provide a human-friendly filename when saving Added more bulk thumbnail regeneration tools Tweaks to bulk actions to correct totals when batching items
		
			
				
	
	
		
			44 lines
		
	
	
		
			724 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			724 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| /**
 | |
|  * Class SCoreException
 | |
|  *
 | |
|  * A base exception to be caught by the upper levels.
 | |
|  */
 | |
| class SCoreException extends Exception
 | |
| {
 | |
| }
 | |
| 
 | |
| /**
 | |
|  * Class PermissionDeniedException
 | |
|  *
 | |
|  * A fairly common, generic exception.
 | |
|  */
 | |
| class PermissionDeniedException extends SCoreException
 | |
| {
 | |
| }
 | |
| 
 | |
| /**
 | |
|  * Class ImageDoesNotExist
 | |
|  *
 | |
|  * This exception is used when an Image cannot be found by ID.
 | |
|  *
 | |
|  * Example: Image::by_id(-1) returns null
 | |
|  */
 | |
| class ImageDoesNotExist extends SCoreException
 | |
| {
 | |
| }
 | |
| 
 | |
| /*
 | |
|  * For validate_input()
 | |
|  */
 | |
| class InvalidInput extends SCoreException
 | |
| {
 | |
| }
 | |
| 
 | |
| /*
 | |
|  * This is used by the image resizing code when there is not enough memory to perform a resize.
 | |
|  */
 | |
| class InsufficientMemoryException extends SCoreException
 | |
| {
 | |
| } |