About Manager
Manager.cfc is a layer of abstraction built onto
DataMgr and
FileMgr (as well as CFIMAGE.cfc) and works with any
database supported by DataMgr.
When using DataMgr directly, you can either define the database structure or have DataMgr introspect the database for you. With Manager.cfc, the data structure must be defined in your code.
So, for that significant cost, what does Manager.cfc provide?
- A more concise XML syntax than DataMgr.
- The ability to define file types with a folder attribute and Manager will ensure existence of the folder.
- The ability to define a minimum image size and Manager will throw an exception if the provided image is to small.
- The ability to provide size constraints for an image and Manager will automatically resize it to fit in the space allocated.
- The ability to define a thumbnail field (for an image field) and have the thumbnail image automatically created from the image using the size restriction provided.
- Note that this process will run any time a new image is provided to Manager.
- New thumbnail fields will also have thumbnails automatically created for all existing images.
- The ability to provide a quality attribute for images or thumbnails and have them automatically optimized to that quality.
- Automatically rename files to use legal file names.
- Automatically include (dynamically calculated) columns in returned queries with the browser path and file path to any field with a file.
- getFieldsArray(),getFieldsStruct(),getMetaStruct() methods that return data in a format usable by SebTags.
- Note, however, that these require a "tablename" argument and so cannot be called by SebTag directly.