phpDocumentor

GanStatic
in package

Classe regroupant des méthodes statiques de gestion des GAN

Table of Contents

Constants

GAN_DIR  = __DIR__ . '/gan'

Methods

analyzeHtml()  : array{}|array{analyzeErrors: list}|array{title: list, edition: string, scale: list}
analyzeHtml() - analyse du Html du GAN
analyzeHtmlOfMap()  : void
pour mise au point effectue l'analyse du GAN pour une carte
build()  : void
construit la synhèse des GAN de la moisson existante
harvest()  : void
function harvest() - moissonne les GAN par carte dans le répertoire self::GAN_DIR
week()  : string
transforme une date en semaine sur 4 caractères comme utilisé par le GAN

Constants

GAN_DIR

public mixed GAN_DIR = __DIR__ . '/gan'

Methods

analyzeHtml()

analyzeHtml() - analyse du Html du GAN

public static analyzeHtml(string $html) : array{}|array{analyzeErrors: list}|array{title: list, edition: string, scale: list}

analyse du html du Gan notamment pour identifier les corrections et l'édition d'une carte retourne un array avec les champs title, edition et corrections + analyzeErrors en cas d'erreur d'analyse J'ai essayé de minimiser la dépendance au code Html !

Parameters
$html : string
Return values
array{}|array{analyzeErrors: list}|array{title: list, edition: string, scale: list}

analyzeHtmlOfMap()

pour mise au point effectue l'analyse du GAN pour une carte

public static analyzeHtmlOfMap(string $mapnum) : void
Parameters
$mapnum : string

build()

construit la synhèse des GAN de la moisson existante

public static build() : void

harvest()

function harvest() - moissonne les GAN par carte dans le répertoire self::GAN_DIR

public static harvest([array<string, bool> $options = [] ]) : void

Les cartes interrogées sont celles de Portfolio::$all

Parameters
$options : array<string, bool> = []

week()

transforme une date en semaine sur 4 caractères comme utilisé par le GAN

public static week(string $modified) : string
Parameters
$modified : string
Return values
string

        
On this page

Search results