| Line 128... |
Line 128... |
| 128 |
}
|
128 |
}
|
| 129 |
$this->flux[$nom] = array('titre' => $titre, 'description' => $description, 'urls' => $flux);
|
129 |
$this->flux[$nom] = array('titre' => $titre, 'description' => $description, 'urls' => $flux);
|
| 130 |
}
|
130 |
}
|
| Line 131... |
Line 131... |
| 131 |
|
131 |
|
| 132 |
private function chargerListeDesFlux() {
|
- |
|
| 133 |
|
- |
|
| 134 |
$this->setFlux('projet', 'Flux de syndication des projets',
|
- |
|
| 135 |
'Ce flux fournit des informations sur les mises à jour des projets saisis dans COEL.');
|
132 |
private function chargerListeDesFlux() {
|
| 136 |
$this->setFlux('structure','Flux de syndication des institutions',
|
133 |
$this->setFlux('structure','Flux de syndication des institutions',
|
| 137 |
'Ce flux fournit des informations sur les mises à jour des institutions saisies dans COEL.');
|
134 |
'Ce flux fournit des informations sur les mises à jour des institutions saisies dans COEL.');
|
| 138 |
$this->setFlux('collection', 'Flux de syndication des Collections',
|
135 |
$this->setFlux('collection', 'Flux de syndication des Collections',
|
| 139 |
'Ce flux fournit des informations sur les mises à jour des collections saisies dans COEL.');
|
136 |
'Ce flux fournit des informations sur les mises à jour des collections saisies dans COEL.');
|
| Line 147... |
Line 144... |
| 147 |
|
144 |
|
| 148 |
private function getServiceListeDesFlux() {
|
145 |
private function getServiceListeDesFlux() {
|
| 149 |
return $this->flux;
|
146 |
return $this->flux;
|
| Line 150... |
Line -... |
| 150 |
}
|
- |
|
| 151 |
|
- |
|
| 152 |
private function getServiceProjet() {
|
- |
|
| 153 |
// Construction de la requête
|
- |
|
| 154 |
$requete = (($this->distinct) ? 'SELECT DISTINCT' : 'SELECT').' '.
|
- |
|
| 155 |
' h1.cmhl_id_historique_ligne, h1.cmhl_ce_table, h1.cmhl_cle_ligne, '.
|
- |
|
| 156 |
' h1.cmhl_enregistrement, '.
|
- |
|
| 157 |
' h1.cmhl_date_modification, h1.cmhl_ce_etat, h1.cmhl_ip, '.
|
- |
|
| 158 |
' h1.cmhl_cle_ligne AS guid, '.
|
- |
|
| 159 |
" 'prj' AS guid_type, ".
|
- |
|
| 160 |
' cp_fmt_nom_complet AS modifier_par '.
|
- |
|
| 161 |
'FROM coel_meta_historique_ligne AS h1 '.
|
- |
|
| 162 |
' LEFT JOIN coel_meta_historique_ligne AS h2 '.
|
- |
|
| 163 |
' ON (h1.cmhl_ce_table = h2.cmhl_ce_table '.
|
- |
|
| 164 |
' AND h1.cmhl_cle_ligne = h2.cmhl_cle_ligne '.
|
- |
|
| 165 |
' AND h1.cmhl_date_modification <= h2.cmhl_date_modification ) '.
|
- |
|
| 166 |
' LEFT JOIN coel_personne ON (h1.cmhl_ce_modifier_par = cp_id_personne) '.
|
- |
|
| 167 |
'WHERE h1.cmhl_ce_table = 115 %s '.
|
- |
|
| 168 |
'GROUP BY h1.cmhl_cle_ligne, h1.cmhl_date_modification, h1.cmhl_date_modification '.
|
- |
|
| 169 |
'HAVING COUNT(*) = %s '.
|
- |
|
| 170 |
'ORDER BY '.((!is_null($this->orderby)) ? $this->orderby : 'h1.cmhl_date_modification DESC').' '.
|
- |
|
| 171 |
"LIMIT $this->start,$this->limit ";
|
- |
|
| 172 |
|
- |
|
| 173 |
$elements = $this->executerRequeteHistorique($requete);
|
- |
|
| 174 |
|
- |
|
| 175 |
// Création du contenu
|
- |
|
| 176 |
$contenu = $this->executerService('cpr_nom', $elements);
|
- |
|
| 177 |
return $contenu;
|
- |
|
| 178 |
}
|
147 |
}
|
| 179 |
|
148 |
|
| 180 |
private function getServiceStructure() {
|
149 |
private function getServiceStructure() {
|
| 181 |
$elements = array();
|
150 |
$elements = array();
|
| 182 |
$elements = array_merge($elements, $this->getHistoriqueTableStructure(120));
|
151 |
$elements = array_merge($elements, $this->getHistoriqueTableStructure(120));
|