Language Reference » Image Maps » dumpImageMap
dumpImageMap - Dump your image map for client side processing
This function allows you to retrieve your image map so it can be processed client side.
Calling this function
Name is the name of your image map.
UniqueID is the unique ID of image map (will be used as the file name if recording on disk).
StorageFolder is the name of the temporary folder where is stored the image map (if recording on disk).
The image map can be stored in two ways depending of the value given to the StorageMode parameter :
IMAGE_MAP_STORAGE_SESSION to store the coordinates in the user Session.
IMAGE_MAP_STORAGE_FILE to store the coordinates on the server disk.
When this script will be called given the ImageMap parameter (either thought a GET or POST variable), it returns the associated image map :
/* Library settings */ define("CLASS_PATH", "../../../class"); define("FONT_PATH", "../../../fonts"); /* pChart library inclusions */ include(CLASS_PATH."/pData.class.php"); include(CLASS_PATH."/pDraw.class.php"); include(CLASS_PATH."/pImage.class.php"); /* Create the pChart object */ $myPicture = new pImage(700,230,$MyData); /* Retrieve the image map */ if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"])) $myPicture->dumpImageMap("ImageMapBarChart",IMAGE_MAP_STORAGE_FILE,"BarChart","../tmp");
Components used on this web site : Famfamfam icons has been made by Mark James, Rounded corners lite has been coded by Cameron Cooke and Tim Hutchison, SyntaxHighlighter has been written by Alex Gorbatchev. pChart and this web site have been created by Jean-Damien POGOLOTTI. This documentation contains 185 pages and 56 comments. 409 users have registered. This page has been rendered in 0,02 seconds. Wiki revision 1.37.