public function dumpImageMap(
        $Name = "pChart",
        $StorageMode = IMAGE_MAP_STORAGE_SESSION,
        $UniqueID = "imageMap",
        $StorageFolder = "tmp"
    ) {
        $this->ImageMapIndex = $Name;
        $this->ImageMapStorageMode = $StorageMode;

        if ($this->ImageMapStorageMode == IMAGE_MAP_STORAGE_SESSION) {
            if (!isset($_SESSION)) {
                session_start();
            }
            if ($_SESSION[$Name] != null) {
                foreach ($_SESSION[$Name] as $Key => $Params) {
                    echo $Params[0] . IMAGE_MAP_DELIMITER . $Params[1]
                    . IMAGE_MAP_DELIMITER . $Params[2] . IMAGE_MAP_DELIMITER
                    . $Params[3] . IMAGE_MAP_DELIMITER . $Params[4] . "\r\n";
                }
            }
        } elseif ($this->ImageMapStorageMode == IMAGE_MAP_STORAGE_FILE) {
            if (file_exists($StorageFolder . "/" . $UniqueID . ".map")) {
                $Handle = @fopen($StorageFolder . "/" . $UniqueID . ".map", "r");
                if ($Handle) {
                    while (($Buffer = fgets($Handle, 4096)) !== false) {
                        echo $Buffer;
                    }
                }
                fclose($Handle);

                if ($this->ImageMapAutoDelete) {
                    unlink($StorageFolder . "/" . $UniqueID . ".map");
                }
            }
        }

        /* When the image map is returned to the client, the script ends */
        exit();
    }
public function dumpImageMap(
        $Name = "pChart",
        $StorageMode = IMAGE_MAP_STORAGE_SESSION,
        $UniqueID = "imageMap",
        $StorageFolder = "tmp"
    ) {
        $this->ImageMapIndex = $Name;
        $this->ImageMapStorageMode = $StorageMode;

        if ($this->ImageMapStorageMode == IMAGE_MAP_STORAGE_SESSION) {
            if (!isset($_SESSION)) {
                session_start();
            }
            if ($_SESSION[$Name] != null) {
                foreach ($_SESSION[$Name] as $Key => $Params) {
                    echo $Params[0] . IMAGE_MAP_DELIMITER . $Params[1]
                    . IMAGE_MAP_DELIMITER . $Params[2] . IMAGE_MAP_DELIMITER
                    . $Params[3] . IMAGE_MAP_DELIMITER . $Params[4] . "\r\n";
                }
            }
        } elseif ($this->ImageMapStorageMode == IMAGE_MAP_STORAGE_FILE) {
            if (file_exists($StorageFolder . "/" . $UniqueID . ".map")) {
                $Handle = @fopen($StorageFolder . "/" . $UniqueID . ".map", "r");
                if ($Handle) {
                    while (($Buffer = fgets($Handle, 4096)) !== false) {
                        echo $Buffer;
                    }
                }
                fclose($Handle);

                if ($this->ImageMapAutoDelete) {
                    unlink($StorageFolder . "/" . $UniqueID . ".map");
                }
            }
        }

        /* When the image map is returned to the client, the script ends */
        exit();
    }
public function dumpImageMap ( $ Name = "pChart" , $ StorageMode = IMAGE_MAP_STORAGE_SESSION , $ UniqueID = "imageMap" , $ StorageFolder = "tmp" ) { $ this -> ImageMapIndex = $ Name ; $ this -> ImageMapStorageMode = $ StorageMode ; if ( $ this -> ImageMapStorageMode == IMAGE_MAP_STORAGE_SESSION ) { if ( ! isset ( $ _SESSION ) ) { session_start ( ) ; } if ( $ _SESSION [ $ Name ] != null ) { foreach ( $ _SESSION [ $ Name ] as $ Key => $ Params ) { echo $ Params [ 0 ] . IMAGE_MAP_DELIMITER . $ Params [ 1 ] . IMAGE_MAP_DELIMITER . $ Params [ 2 ] . IMAGE_MAP_DELIMITER . $ Params [ 3 ] . IMAGE_MAP_DELIMITER . $ Params [ 4 ] . "\r\n" ; } } } elseif ( $ this -> ImageMapStorageMode == IMAGE_MAP_STORAGE_FILE ) { if ( file_exists ( $ StorageFolder . "/" . $ UniqueID . ".map" ) ) { $ Handle = @ fopen ( $ StorageFolder . "/" . $ UniqueID . ".map" , "r" ) ; if ( $ Handle ) { while ( ( $ Buffer = fgets ( $ Handle , 4096 ) ) !== false ) { echo $ Buffer ; } } fclose ( $ Handle ) ; if ( $ this -> ImageMapAutoDelete ) { unlink ( $ StorageFolder . "/" . $ UniqueID . ".map" ) ; } } } /* When the image map is returned to the client, the script ends */ exit ( ) ; }
Dump the image map
@param string $Name
@param int $StorageMode
@param string $UniqueID
@param string $StorageFolder
Dump the image map