<?php

	class GalleryConstants
	{
	    /**
	     * flags used to calculate what we can do with the image
	     */
	    const GALLERY_RESOURCE_PREVIEW_AVAILABLE = 1;

	    /**
	     * These are the different resource types that we can recognize.
	     * They are very broad groups, tho.
	     */
		const GALLERY_RESOURCE_ANY = 0;
	    const GALLERY_RESOURCE_IMAGE = 1;
	    const GALLERY_RESOURCE_VIDEO = 2;
	    const GALLERY_RESOURCE_SOUND = 3;
	    const GALLERY_RESOURCE_UNKNOWN = 4;
	    const GALLERY_RESOURCE_DOCUMENT = 5;
	    const GALLERY_RESOURCE_ZIP = 6;

		/**
		 * when we are not referring to any album
		 */
		const GALLERY_NO_ALBUM = -1;

	    /**
	     * default folder where resources will be stored. Every blog
	     * will have its own folder under
	     * $RESOURCES_STORAGE_FOLDER/X, where X is the blog identifier.
	     */
	    const DEFAULT_RESOURCES_STORAGE_FOLDER = "./gallery/";

		/**
		 * different error codes that the GalleryResources::addResource() method
		 * can return
		 */
		const GALLERY_ERROR_RESOURCE_TOO_BIG = -1;
		const GALLERY_ERROR_RESOURCE_FORBIDDEN_EXTENSION = -2;
		const GALLERY_ERROR_QUOTA_EXCEEDED = -3;
		const GALLERY_ERROR_ADDING_RESOURCE = -4;
		const GALLERY_ERROR_RESOURCE_NOT_WHITELISTED_EXTENSION = -10;
		const GALLERY_ERROR_UPLOADS_NOT_ENABLED = -200;
		const GALLERY_NO_ERROR = true;

		/**
		 * default thumbnail sizes
		 */
		const GALLERY_DEFAULT_THUMBNAIL_WIDTH = 120;
		const GALLERY_DEFAULT_THUMBNAIL_HEIGHT = 120;	
		const GALLERY_DEFAULT_MEDIUM_SIZE_THUMBNAIL_WIDTH = 640;
		const GALLERY_DEFAULT_MEDIUM_SIZE_THUMBNAIL_HEIGHT = 480;	

		/**
		 * other basic constants for the resizer
		 */
		const THUMBNAIL_OUTPUT_FORMAT_SAME_AS_IMAGE = "same";
		const THUMBNAIL_OUTPUT_FORMAT_JPG = "jpg";
		const THUMBNAIL_OUTPUT_FORMAT_PNG = "png";
		const THUMBNAIL_OUTPUT_FORMAT_GIF = "gif";	

		/**
		 * default generator
		 */
		const DEFAULT_GENERATOR_METHOD = "gd";		
	}
?>