Cache
in package
classe statique implémentant la gestion du cache des tuiles
Table of Contents
Constants
- NB_SECONDS_IN_CACHE = 0.5 * 24 * 60 * 60
Methods
- path() : string
- readAndSend() : void
- Si la tuile est présente alors l'affiche
- test() : bool
- définit les conditions de mise en cache
- write() : void
- Si les conditions sont remplies alors stocke la tuile
Constants
NB_SECONDS_IN_CACHE
public
mixed
NB_SECONDS_IN_CACHE
= 0.5 * 24 * 60 * 60
Methods
path()
public
static path() : string
Return values
stringreadAndSend()
Si la tuile est présente alors l'affiche
public
static readAndSend(string $layer, int $z, int $x, int $y) : void
Parameters
- $layer : string
- $z : int
- $x : int
- $y : int
test()
définit les conditions de mise en cache
public
static test(string $layer, int $z, int $x, int $y) : bool
Parameters
- $layer : string
- $z : int
- $x : int
- $y : int
Return values
boolwrite()
Si les conditions sont remplies alors stocke la tuile
public
static write(string $layer, int $z, int $x, int $y, GdImage $image) : void
Parameters
- $layer : string
- $z : int
- $x : int
- $y : int
- $image : GdImage