Chapter 7. Functions

Table of Contents

What are functions
Functions that control CpmFetch
Functions that return images or image data
Functions that return textual statistics
Functions that return gallery level images
Functions that are depreciated

What are functions

Functions are basically things you can tell CpmFetch to do for you. There are many many functions in CpmFetch... probably even more than are listed here (I am absentminded). Some of them will tell CpmFetch to display images, some will tell it how to handle displaying images and titles in future calls to functions.

I've divided the functions up into groups to make them easier to find. These groups are:

  • Functions that control this program and its behavior - these functions start CpmFetch and also tell it to do stuff like showing private images, how to format dates, etc.

  • Functions that return images - These return nice tables of images. You can also not have it return an image if you want simply the title.

  • Functions that return textual statistics - These allow you to just list statistics like "100 images in the gallery with 50 comments", and more...

  • Functions that return gallery level images and text - these can show a list of galleries and an image from each, etc, etc..

Each function call is comprised of two parts... the function name and the parameters. Think of it as "what to do" and "how to do it"