Subversion Repositories Applications.referentiel

Rev

Rev 188 | Rev 192 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 188 Rev 190
Line 843... Line 843...
843
	private function testerEpitheteInfraSpSyntaxe() {
843
	private function testerEpitheteInfraSpSyntaxe() {
844
		$noms_erreur = array();
844
		$noms_erreur = array();
845
		foreach ($this->noms as &$nom) {
845
		foreach ($this->noms as &$nom) {
846
			if ($nom['epithete_infra_sp'] != '') {
846
			if ($nom['epithete_infra_sp'] != '') {
847
				$mots = explode(' ', $nom['epithete_infra_sp']);
847
				$mots = explode(' ', $nom['epithete_infra_sp']);
-
 
848
				$erreur = false;
848
				foreach ($mots as $mot) {
849
				foreach ($mots as $mot) {
849
					if (!(preg_match('/^[+x]$/', $mot) || $this->verifierTypeEpithete($mot)|| $this->verifierEpitheteSp($mot))) {
850
					if (!(preg_match('/^[+x]$/', $mot) || $this->verifierTypeEpithete($mot)|| $this->verifierEpitheteSp($mot))) {
-
 
851
						$erreur = true;
-
 
852
					}
-
 
853
				}
-
 
854
				if ($erreur == true) {
850
						$epithete_traite = $this->repererEspace($nom['epithete_infra_sp']);
855
					$epithete_traite = $this->repererEspace($nom['epithete_infra_sp']);
851
						$noms_erreur[] = array($nom['num_nom'], $epithete_traite, $nom['exclure_taxref']);
856
					$noms_erreur[] = array($nom['num_nom'], $epithete_traite, $nom['exclure_taxref']);
852
					}
857
				}
853
				}
858
			}
854
			}
859
		}
855
		}
-
 
856
		return $noms_erreur;
860
		return $noms_erreur;
857
	}
861
	}
Line 858... Line 862...
858
	
862
	
859
	/**
863
	/**