Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1940 Rev 1941
Line 11... Line 11...
11
 * @license    CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
11
 * @license    CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
12
 * @copyright  1999-2014 Tela Botanica <accueil@tela-botanica.org>
12
 * @copyright  1999-2014 Tela Botanica <accueil@tela-botanica.org>
13
 */
13
 */
14
class Maintenance extends DelScript {
14
class Maintenance extends DelScript {
Line 15... Line 15...
15
 
15
 
16
	private $tables_referentiel = array(
16
	protected $tables_referentiel = array(
17
				'bdtfx' => 'tb_eflore_test.bdtfx_v2_01',
17
				'bdtfx' => 'tb_eflore_test.bdtfx_v2_01',
18
				'bdtxa' => 'tb_eflore_test.bdtxa_v1_01',
18
				'bdtxa' => 'tb_eflore_test.bdtxa_v1_01',
19
				'apd'	=> 'tb_eflore_test.apd_v3_4_0'	
19
				'apd'	=> 'tb_eflore_test.apd_v3_4_0'	
Line 25... Line 25...
25
	
25
	
Line 26... Line 26...
26
	public function executer() {
26
	public function executer() {
Line 27... Line 27...
27
				
27
				
-
 
28
		$propositions = $this->obtenirPropositionsPotentiellementViables();
28
		$propositions = $this->obtenirPropositionsPotentiellementViables();
29
		
29
		
30
		$noms_ordonnes = array();
30
		$noms_ordonnes = array();
31
		$nb_propositions_traitees = 0;
31
		$nb_prop_orphelines = count($propositions);
32
		$nb_prop_orphelines = count($propositions);
Line 57... Line 58...
57
				$noms_ordonnes[$prop['id_commentaire']]['nom_trouves'] = $noms_possibles;
58
				$noms_ordonnes[$prop['id_commentaire']]['nom_trouves'] = $noms_possibles;
58
				$nb_noms_trouves += count($noms_possibles[$referentiel]);
59
				$nb_noms_trouves += count($noms_possibles[$referentiel]);
59
				$nb_prop_inchangees += empty($noms_possibles[$referentiel]) ? 1 : 0;
60
				$nb_prop_inchangees += empty($noms_possibles[$referentiel]) ? 1 : 0;
60
				$nb_prop_augmentees += empty($noms_possibles[$referentiel]) ? 0 : 1;
61
				$nb_prop_augmentees += empty($noms_possibles[$referentiel]) ? 0 : 1;
61
			}
62
			}
-
 
63
			
-
 
64
			$this->afficherAvancement('propositions traitées ');
62
		}
65
		}
Line 63... Line 66...
63
		
66
		
Line 64... Line 67...
64
		$noms_ordonnes[$prop['id_commentaire']]['proposition'] = $prop;
67
		$noms_ordonnes[$prop['id_commentaire']]['proposition'] = $prop;
65
		
68
		
66
		//TODO: faire la mise à jour
69
		//TODO: faire la mise à jour
67
			
70
		echo "\n";	
68
		echo $nb_noms_trouves.' noms ont été trouvés'."\n";
71
		echo $nb_noms_trouves.' noms ont été trouvés'."\n";
69
		echo $nb_prop_augmentees.' propositions ont été améliorées'."\n";
72
		echo $nb_prop_augmentees.' propositions ont été améliorées'."\n";