Subversion Repositories Applications.papyrus

Rev

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

Rev 373 Rev 443
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.4 2005-05-25 13:49:22 jpm Exp $
24
// CVS : $Id: more_recherche.class.php,v 1.5 2005-09-20 17:01:22 ddelon 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.4 $ $Date: 2005-05-25 13:49:22 $
37
*@version       $Revision: 1.5 $ $Date: 2005-09-20 17:01:22 $
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
*/
39
*/
Line 40... Line 40...
40
 
40
 
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
Line 100... Line 100...
100
        }
100
        }
101
    }
101
    }
102
    */
102
    */
103
    function rechercherMotif() {
103
    function rechercherMotif() {
104
        foreach ($this->getMoteurs() as $cle => $val) {
104
        foreach ($this->getMoteurs() as $cle => $val) {
105
            $this->setResultats(array_merge($this->getResultats(), $val->rechercherMotif($this->getMotif())));
105
            $this->setResultats(array_merge((array)$this->getResultats(),(array) $val->rechercherMotif($this->getMotif())));
106
        }
106
        }
107
        $aso_resultats = $this->getResultats();
107
        $aso_resultats = $this->getResultats();
108
        function comparer($a, $b) {
108
        function comparer($a, $b) {
109
            if ($a['poids'] > $b['poids']) {
109
            if ($a['poids'] > $b['poids']) {
110
                return -1;
110
                return -1;
Line 175... Line 175...
175
}
175
}
Line 176... Line 176...
176
 
176
 
177
/* +--Fin du code ----------------------------------------------------------------------------------------+
177
/* +--Fin du code ----------------------------------------------------------------------------------------+
178
*
178
*
-
 
179
* $Log: not supported by cvs2svn $
-
 
180
* Revision 1.4  2005/05/25 13:49:22  jpm
-
 
181
* Corection erreur pour la recherche dans le contenu.
179
* $Log: not supported by cvs2svn $
182
*
180
* Revision 1.3  2005/05/19 12:46:12  jpm
183
* Revision 1.3  2005/05/19 12:46:12  jpm
181
* Correction bogue accesskey.
184
* Correction bogue accesskey.
182
* Ajout d'un id à la liste.
185
* Ajout d'un id à la liste.
183
* Arrondissement des score.
186
* Arrondissement des score.