Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2066 Rev 2414
Line 1... Line 1...
1
<?php
1
<?php
2
// Encodage : UTF-8
2
// declare(encoding='UTF-8');
3
// +-------------------------------------------------------------------------------------------------------------------+
-
 
4
/**
3
/**
5
 * Traitement des mots clés cel pour les migrer vers des mots clés stockés avec path enumeration
4
 * Traitement des mots clés cel pour les migrer vers des mots clés stockés avec path enumeration
6
 *
5
 *
7
 * Description : classe de migration vers des mots clés stockés avec path enumeration
6
 * Utilisation :
8
 * Utilisation : php script.php migrationmotsclees -a obs
7
 *  - migrer les mots-clés obs : <code>/opt/lamp/bin/php cli.php migration_mots_cles -a obs</code>
9
 *  * Utilisation : php script.php migrationmotsclees -a images
8
 *  - migrer les mots-clés images : <code>/opt/lamp/bin/php cli.php migration_mots_cles -a images</code>
10
 *
9
 *
11
 * @category		PHP 5.3
10
 * @category   CEL
12
 * @package		scripts
11
 * @package    Scripts
13
 //Auteur original :
12
 * @subpackage Migration : Mots-Clés
14
 * @author		Aurélien PERONNET <aurelien@tela-botanica.org>
13
 * @author     Mathias CHOUET <mathias@tela-botanica.org>
-
 
14
 * @author     Jean-Pascal MILCENT <jpm@tela-botanica.org>
15
 * @copyright	Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
15
 * @author     Aurelien PERONNET <aurelien@tela-botanica.org>
16
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
16
 * @license    GPL v3 <http://www.gnu.org/licenses/gpl.txt>
17
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
17
 * @license    CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
18
 * @version		$Id$
18
 * @copyright  1999-2014 Tela Botanica <accueil@tela-botanica.org>
19
 */
19
 */
20
// +-------------------------------------------------------------------------------------------------------------------+
20
include_once dirname(__FILE__).'/bibliotheque/Dao.php';
-
 
21
 
21
class Migrationmotscles extends Script {
22
class MigrationMotsCles extends Script {
Line 22... Line 23...
22
	
23
 
Line 23... Line -...
23
	private $mode;
-
 
24
	
24
	private $mode;
25
	// +-------------------------------------------------------------------------------------------------------------------+
-
 
26
	public function executer() {		
-
 
27
		include_once dirname(__FILE__).'/bibliotheque/Dao.php';
25
 
28
		
26
	public function executer() {
Line 29... Line 27...
29
		$cmd = $this->getParametre('a');
27
		$cmd = $this->getParametre('a');
30
		$this->mode_verbeux = $this->getParametre('v');
28
		$this->mode_verbeux = $this->getParametre('v');
Line 172... Line 170...
172
	static public function simplifier($text) {
170
	static public function simplifier($text) {
173
		// le slash est le seul caractère interdit dans les mots clés
171
		// le slash est le seul caractère interdit dans les mots clés
174
		return trim(str_replace(array('\\','/'), '', $text));
172
		return trim(str_replace(array('\\','/'), '', $text));
175
	}
173
	}
176
}
174
}
177
?>
-
 
178
175