Sf TIC Bundles

Commune
in package
Uses InseeTnccable, Geolocatable

Commune française.

Tags
ORM\Table

(name="tic_town_commune", indexes={ @ORM\Index(name="insee_idx", columns={"insee"}), @ORM\Index(name="postal_idx", columns={"postal"}), @ORM\Index(name="nom_idx", columns={"nom"}), })

ORM\Entity

(repositoryClass=EntityRepo::class)

Table of Contents

Properties

$geoLat  : mixed
$geoLng  : mixed
$art  : mixed
$codes  : mixed
$departement  : mixed
$enabled  : mixed
$insee  : mixed
$nom  : mixed
$nom_maj  : mixed
$outre_mer  : mixed
$postal  : mixed
$tncc  : mixed
$tncc_articles  : mixed
$tncc_charnieres  : mixed
$type  : mixed
$version  : mixed

Methods

__construct()  : mixed
__toString()  : mixed
getArt()  : string|null
getArticle()  : string
Retourne l'article à employer avec le nom.
getArtNom()  : string
Retourne le nom avec son éventuel article en préfixe.
getCharniere()  : string
Retourne la charnière à employer avec le nom.
getCodes()  : string|null
getDepartement()  : Departement|null
getEnabled()  : bool|null
getGeoLat()  : float|null
getGeoLng()  : float|null
getGeomap()  : array<string|int, mixed>|string
Retourne les coordonnées latitude;longitude pour le formulaire.
getInsee()  : string|null
getNom()  : string|null
getNomArt()  : string
Retourne le nom avec son éventuel article en suffixe (entre parenthèses).
getNomMaj()  : string|null
getOutreMer()  : bool|null
getPostal()  : string|null
getRegion()  : Region|null
getTncc()  : int|null
getType()  : string|null
getTypeNomClair()  : int
Alias du getter sur tncc.
getVersion()  : string|null
parseGeomap()  : array<string|int, mixed>|null
Retourne un tableau {'lat','lng'} à partir de différents formats d'entrée.
setArt()  : self
setDepartement()  : self
setEnabled()  : self
setGeoLat()  : self
setGeoLng()  : self
setGeomap()  : Entity
Enregistre les coordonnées latitude;longitude pour le formulaire.
setInsee()  : self
setNom()  : self
setNomMaj()  : self
setOutreMer()  : self
setPostal()  : self
setTncc()  : self
setType()  : self
setTypeNomClair()  : self
Alias du setter sur tncc.
setVersion()  : self
tnccArticle()  : string
Retourne l'article correspondant à un code TNCC.
tnccCharniere()  : string
Retourne la charnière correspondant à un code TNCC.

Properties

$geoLat

protected mixed $geoLat
Tags
ORM\Column

(type="decimal", precision=10, scale=6, nullable=true)

$geoLng

protected mixed $geoLng
Tags
ORM\Column

(type="decimal", precision=10, scale=6, nullable=true)

$art

private mixed $art
Tags
ORM\Column

(type="string", length=8, nullable=true)

$codes

private mixed $codes
Tags
ORM\Id
ORM\Column

(type="string", length=16)

$departement

private mixed $departement
Tags
ORM\ManyToOne

(targetEntity="Departement", inversedBy="communes")

ORM\JoinColumn

(referencedColumnName="insee")

$enabled

private mixed $enabled
Tags
ORM\Column

(type="boolean")

$insee

private mixed $insee
Tags
ORM\Column

(type="string", length=5)

$nom

private mixed $nom
Tags
ORM\Column

(type="string", length=255)

$nom_maj

private mixed $nom_maj
Tags
ORM\Column

(type="string", length=255)

$outre_mer

private mixed $outre_mer
Tags
ORM\Column

(type="boolean")

$postal

private mixed $postal
Tags
ORM\Column

(type="string", length=5, nullable=true)

$tncc

private mixed $tncc
Tags
ORM\Column

(type="smallint", nullable=true)

$tncc_articles

private mixed $tncc_articles = array("", "", "Le", "La", "Les", "L'", "Aux", "Las", "Los")

$tncc_charnieres

private mixed $tncc_charnieres = array("de", "d'", "du", "de la", "des", "de l'", "des", "de Las", "de Los")

$type

private mixed $type
Tags
ORM\Column

(type="string", length=4)

$version

private mixed $version
Tags
ORM\Column

(type="string", length=6, nullable=true)

Methods

__construct()

public __construct() : mixed

__toString()

public __toString() : mixed

getArt()

public getArt() : string|null
Return values
string|null

getArticle()

Retourne l'article à employer avec le nom.

public getArticle([bool $espace = false ][, bool $parentheses = false ]) : string
Parameters
$espace : bool = false
$parentheses : bool = false
Return values
string

getArtNom()

Retourne le nom avec son éventuel article en préfixe.

public getArtNom() : string
Return values
string

getCharniere()

Retourne la charnière à employer avec le nom.

public getCharniere([bool $espace = false ]) : string
Parameters
$espace : bool = false
Return values
string

getCodes()

public getCodes() : string|null
Return values
string|null

getEnabled()

public getEnabled() : bool|null
Return values
bool|null

getGeoLat()

public getGeoLat() : float|null
Return values
float|null

getGeoLng()

public getGeoLng() : float|null
Return values
float|null

getGeomap()

Retourne les coordonnées latitude;longitude pour le formulaire.

public getGeomap([bool|string $toString = false ]) : array<string|int, mixed>|string
Parameters
$toString : bool|string = false
Return values
array<string|int, mixed>|string

getInsee()

public getInsee() : string|null
Return values
string|null

getNom()

public getNom() : string|null
Return values
string|null

getNomArt()

Retourne le nom avec son éventuel article en suffixe (entre parenthèses).

public getNomArt() : string
Return values
string

getNomMaj()

public getNomMaj() : string|null
Return values
string|null

getOutreMer()

public getOutreMer() : bool|null
Return values
bool|null

getPostal()

public getPostal() : string|null
Return values
string|null

getTncc()

public getTncc() : int|null
Return values
int|null

getType()

public getType() : string|null
Return values
string|null

getTypeNomClair()

Alias du getter sur tncc.

public getTypeNomClair() : int
Return values
int

getVersion()

public getVersion() : string|null
Return values
string|null

parseGeomap()

Retourne un tableau {'lat','lng'} à partir de différents formats d'entrée.

public static parseGeomap(array<string|int, mixed>|string $latLng[, string $sep = null ]) : array<string|int, mixed>|null
Parameters
$latLng : array<string|int, mixed>|string

Coordonnées à analyser (chaine concaténée ou tableau lat/lng)

$sep : string = null

Caractère(s) séparateur si $latLng est une chaine (par défaut ';' et ',')

Return values
array<string|int, mixed>|null

Tableau avec les clés 'lat' & 'lng' (ou null si données non reconnues)

setArt()

public setArt(string|null $art) : self
Parameters
$art : string|null
Return values
self

setEnabled()

public setEnabled(bool $enabled) : self
Parameters
$enabled : bool
Return values
self

setGeoLat()

public setGeoLat(float|null $geoLat) : self
Parameters
$geoLat : float|null
Return values
self

setGeoLng()

public setGeoLng(float|null $geoLng) : self
Parameters
$geoLng : float|null
Return values
self

setGeomap()

Enregistre les coordonnées latitude;longitude pour le formulaire.

public setGeomap(array<string|int, mixed>|string $latLng[, string $sep = null ]) : Entity
Parameters
$latLng : array<string|int, mixed>|string

Coordonnées à enregistrer (chaine concaténée ou tableau lat/lng)

$sep : string = null

Caractère(s) séparateur si $latLng est une chaine (par défaut ';' et ',')

Return values
Entity

setInsee()

public setInsee(string $insee) : self
Parameters
$insee : string
Return values
self

setNom()

public setNom(string $nom) : self
Parameters
$nom : string
Return values
self

setNomMaj()

public setNomMaj(string $nom_maj) : self
Parameters
$nom_maj : string
Return values
self

setOutreMer()

public setOutreMer(bool $outre_mer) : self
Parameters
$outre_mer : bool
Return values
self

setPostal()

public setPostal(string|null $postal) : self
Parameters
$postal : string|null
Return values
self

setTncc()

public setTncc(int|null $tncc) : self
Parameters
$tncc : int|null
Return values
self

setType()

public setType(string $type) : self
Parameters
$type : string
Return values
self

setTypeNomClair()

Alias du setter sur tncc.

public setTypeNomClair(int $tncc) : self
Parameters
$tncc : int
Return values
self

setVersion()

public setVersion(string|null $version) : self
Parameters
$version : string|null
Return values
self

tnccArticle()

Retourne l'article correspondant à un code TNCC.

public static tnccArticle(int $tncc) : string
Parameters
$tncc : int
Return values
string

tnccCharniere()

Retourne la charnière correspondant à un code TNCC.

public static tnccCharniere(int $tncc) : string
Parameters
$tncc : int
Return values
string

        
On this page

Search results