phpDocumentor

shomgeotiff.php

accès aux fichiers de SHOMGEOTIFF en http - 8/2023.

Par défaut lorsque PATH_INFO n'est pas défini propose d'accéder à archives ou current. Définit un objet version qui regroupe le .7z et le md.json ayant même basename. Dans /current possibilité de passer sur la version courante. Puis possibilité de visualiser le .md.json ou de télécharger le .7z Enfin possibilité de lister le contenu du .7z et d'accéder à chaque élément. Le PATH_INFO est composé de la concaténation

  • du chemin du fichier 7z dans SHOMGT3_PORTFOLIO_PATH,
  • du caractère '/' et
  • de l'entrée dans le fichier 7z Permet aussi de convertir en .png un .tif ou un .pdf

Table of Contents

Constants

JSON_OPTIONS  = JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_THROW_ON_ERROR
MIME_TYPES  = ['.png' => 'image/png', '.jpg' => 'image/jpeg', '.tif' => 'image/tiff', '.pdf' => 'application/pdf', '.xml' => 'text/xml; charset="utf-8"', '.7z' => 'application/x-7z-compressed', '.txt' => 'text/plain; charset="utf-8"', '.json' => 'application/json; charset="utf-8"']

Functions

entryInArchive()  : bool
notFound()  : void

Constants

JSON_OPTIONS

public mixed JSON_OPTIONS = JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_THROW_ON_ERROR

MIME_TYPES

public mixed MIME_TYPES = ['.png' => 'image/png', '.jpg' => 'image/jpeg', '.tif' => 'image/tiff', '.pdf' => 'application/pdf', '.xml' => 'text/xml; charset="utf-8"', '.7z' => 'application/x-7z-compressed', '.txt' => 'text/plain; charset="utf-8"', '.json' => 'application/json; charset="utf-8"']

Functions

notFound()

notFound(string $fileName) : void
Parameters
$fileName : string

        
On this page

Search results