public 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;

            $path = sprintf("%s/%s.map", $StorageFolder, $UniqueID);
            if (file_exists($path)) {
                unlink($path);
            }
        }
    }
public 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;

            $path = sprintf("%s/%s.map", $StorageFolder, $UniqueID);
            if (file_exists($path)) {
                unlink($path);
            }
        }
    }
public 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 ; $ path = sprintf ( "%s/%s.map" , $ StorageFolder , $ UniqueID ) ; if ( file_exists ( $ path ) ) { unlink ( $ path ) ; } } }
Initialise the image map methods
@param string $Name
@param int $StorageMode
@param string $UniqueID
@param string $StorageFolder
Initialise the image map methods