InseeTnccable
Gestion du champs TNCC fourni par l'INSEE (Type Nom Clair => article).
Table of Contents
Properties
- $art : mixed
- $tncc : mixed
- $tncc_articles : mixed
- $tncc_charnieres : mixed
Methods
- 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.
- getNomArt() : string
- Retourne le nom avec son éventuel article en suffixe (entre parenthèses).
- getTncc() : int|null
- getTypeNomClair() : int
- Alias du getter sur tncc.
- setArt() : self
- setTncc() : self
- setTypeNomClair() : self
- Alias du setter sur tncc.
- tnccArticle() : string
- Retourne l'article correspondant à un code TNCC.
- tnccCharniere() : string
- Retourne la charnière correspondant à un code TNCC.
Properties
$art
private
mixed
$art
Tags
$tncc
private
mixed
$tncc
Tags
$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")
Methods
getArt()
public
getArt() : string|null
Return values
string|nullgetArticle()
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
stringgetArtNom()
Retourne le nom avec son éventuel article en préfixe.
public
getArtNom() : string
Return values
stringgetCharniere()
Retourne la charnière à employer avec le nom.
public
getCharniere([bool $espace = false ]) : string
Parameters
- $espace : bool = false
Return values
stringgetNomArt()
Retourne le nom avec son éventuel article en suffixe (entre parenthèses).
public
getNomArt() : string
Return values
stringgetTncc()
public
getTncc() : int|null
Return values
int|nullgetTypeNomClair()
Alias du getter sur tncc.
public
getTypeNomClair() : int
Return values
intsetArt()
public
setArt(string|null $art) : self
Parameters
- $art : string|null
Return values
selfsetTncc()
public
setTncc(int|null $tncc) : self
Parameters
- $tncc : int|null
Return values
selfsetTypeNomClair()
Alias du setter sur tncc.
public
setTypeNomClair(int $tncc) : self
Parameters
- $tncc : int
Return values
selftnccArticle()
Retourne l'article correspondant à un code TNCC.
public
static tnccArticle(int $tncc) : string
Parameters
- $tncc : int
Return values
stringtnccCharniere()
Retourne la charnière correspondant à un code TNCC.
public
static tnccCharniere(int $tncc) : string
Parameters
- $tncc : int