Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 81 | Rev 91 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 81 Rev 90
Line 354... Line 354...
354
 
354
 
355
	public function decomposerNomChamp($champ) {
355
	public function decomposerNomChamp($champ) {
356
		$decomposition = false;
356
		$decomposition = false;
357
		if (preg_match('/^(?:([^.]+\.parent_0[12]|[^.]+))(?:\.(.+))?$/', $champ, $match)) {
357
		if (preg_match('/^(?:([^.]+\.parent_0[12]|[^.]+))(?:\.(.+))?$/', $champ, $match)) {
358
			$radical_champ = $match[1];
358
			$radical_champ = $match[1];
359
			$suffixe = $match[2];
359
			$suffixe = (isset($match[2])) ? $match[2] : "";
360
			$decomposition = array($radical_champ, $suffixe);
360
			$decomposition = array($radical_champ, $suffixe);
361
		}
361
		}
362
		return $decomposition;
362
		return $decomposition;