Subversion Repositories eFlore/Applications.cel

Rev

Rev 3615 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3615 Rev 3766
Line 63... Line 63...
63
		return Cel::db()->requeter($requete);
63
		return Cel::db()->requeter($requete);
64
	}
64
	}
Line 65... Line 65...
65
 
65
 
66
	public function insererParCheminSiInexistant($mot_cle, $chemin_parent, $user_id) {
66
	public function insererParCheminSiInexistant($mot_cle, $chemin_parent, $user_id) {
67
		$mot_cle = self::simplifier($mot_cle);
-
 
68
		$cheminMotCle = self::getCheminHarmonise($chemin_parent, $mot_cle);
67
		$mot_cle = self::simplifier($mot_cle);
69
		$motCleP = Cel::db()->proteger($mot_cle);
-
 
70
		$cheminMotCleP = Cel::db()->proteger($cheminMotCle);
68
		$motCleP = Cel::db()->proteger($mot_cle);
Line 71... Line 69...
71
		$idUtilisateurP = Cel::db()->proteger($user_id);
69
		$idUtilisateurP = Cel::db()->proteger($user_id);
72
 
70
 
73
		$requete = "SELECT id ".
71
		$requete = "SELECT id ".
74
			"FROM {$this->table_mots_cles} ".
72
			"FROM {$this->table_mots_cles} ".
75
			"WHERE path = $cheminMotCleP AND name = $motCleP".
73
			"WHERE name = $motCleP".
76
			"AND user_id = $idUtilisateurP ".
74
			"AND user_id = $idUtilisateurP ".
Line 77... Line 75...
77
			' -- '.__FILE__.':'.__LINE__;
75
			' -- '.__FILE__.':'.__LINE__;