Subversion Repositories Applications.papyrus

Rev

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

Rev 1087 Rev 1146
Line 19... Line 19...
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: more_recherche.class.php,v 1.9 2006-10-17 09:21:40 jp_milcent Exp $
24
// CVS : $Id: more_recherche.class.php,v 1.9.2.1 2006-12-12 13:55:23 jp_milcent Exp $
25
/**
25
/**
26
* Classe permettant d'effectuer des recherches sur les métas informations des menus.
26
* Classe permettant d'effectuer des recherches sur les métas informations des menus.
27
*
27
*
28
* Permet de rechercher et classer les menus en fonction d'une chaine.
28
* Permet de rechercher et classer les menus en fonction d'une chaine.
29
*
29
*
Line 32... Line 32...
32
//Auteur original :
32
//Auteur original :
33
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
34
//Autres auteurs :
34
//Autres auteurs :
35
*@author        aucun
35
*@author        aucun
36
*@copyright     Tela-Botanica 2000-2004
36
*@copyright     Tela-Botanica 2000-2004
37
*@version       $Revision: 1.9 $ $Date: 2006-10-17 09:21:40 $
37
*@version       $Revision: 1.9.2.1 $ $Date: 2006-12-12 13:55:23 $
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
*/
39
*/
Line 40... Line 40...
40
 
40
 
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
Line 126... Line 126...
126
	* @return integer	le nombre de fois où les mots sont trouvés.
126
	* @return integer	le nombre de fois où les mots sont trouvés.
127
	*/
127
	*/
128
	function retournerOccurenceMotif($motif, &$texte, $mode = MORE_MODE)
128
	function retournerOccurenceMotif($motif, &$texte, $mode = MORE_MODE)
129
	{
129
	{
130
		$nbre_correspondance = 0;
130
		$nbre_correspondance = 0;
-
 
131
		$nbre_correspondance_total = 0;
131
		if ($mode == 1) {
132
		if ($mode == 1) {
132
			// Découpage en mot
133
			// Découpage en mot
133
			$tab_motif = explode(' ', trim($motif));
134
			$tab_motif = explode(' ', trim($motif));
134
		} else {
135
		} else {
135
			// La chaine saisie par l'utilisateur est recherchée tel quel
136
			// La chaine saisie par l'utilisateur est recherchée tel quel
Line 187... Line 188...
187
}
188
}
Line 188... Line 189...
188
 
189
 
189
/* +--Fin du code ----------------------------------------------------------------------------------------+
190
/* +--Fin du code ----------------------------------------------------------------------------------------+
190
*
191
*
-
 
192
* $Log: not supported by cvs2svn $
-
 
193
* Revision 1.9  2006/10/17 09:21:40  jp_milcent
-
 
194
* Mise en commun des spécifications de la recherche.
191
* $Log: not supported by cvs2svn $
195
*
192
* Revision 1.8  2006/05/23 14:18:19  jp_milcent
196
* Revision 1.8  2006/05/23 14:18:19  jp_milcent
193
* Ajout de la gestion du mode de recherche au moteur de recherche de Papyrus.
197
* Ajout de la gestion du mode de recherche au moteur de recherche de Papyrus.
194
* Soit on recherche chaque mot du motif, soit le motif entier.
198
* Soit on recherche chaque mot du motif, soit le motif entier.
195
*
199
*