function pImage::initialiseImageMap
Search API
5.x pImage.class.php | pImage::initialiseImageMap($Name = "pChart", $StorageMode = IMAGE_MAP_STORAGE_SESSION, $UniqueID = "imageMap", $StorageFolder = "tmp") |
1 call to pImage::initialiseImageMap()
- pImage::addToImageMap in inc/
pchart/ pchart/ class/ pImage.class.php
File
- inc/
pchart/ pchart/ class/ pImage.class.php, line 271
Class
Code
function initialiseImageMap($Name = "pChart", $StorageMode = IMAGE_MAP_STORAGE_SESSION, $UniqueID = "imageMap", $StorageFolder = "tmp")
{
$this->ImageMapIndex = $Name;
$this->ImageMapStorageMode = $StorageMode;
if ($StorageMode == IMAGE_MAP_STORAGE_SESSION)
{
if (!isset($_SESSION)) {
session_start();
}
$_SESSION [$this->ImageMapIndex] = NULL;
}
elseif ($StorageMode == IMAGE_MAP_STORAGE_FILE)
{
$this->ImageMapFileName = $UniqueID;
$this->ImageMapStorageFolder = $StorageFolder;
if (file_exists($StorageFolder . "/" . $UniqueID . ".map")) {
unlink($StorageFolder . "/" . $UniqueID . ".map");
}
}
}