Add labels to databoxes

This commit is contained in:
Romain Neutron
2013-06-12 20:06:49 +02:00
parent 2302efc7e3
commit 11a55bbd43
49 changed files with 406 additions and 129 deletions

View File

@@ -248,7 +248,7 @@ class module_report_dashboard implements module_report_dashboard_componentInterf
$sbas_id = $databox->get_sbas_id();
if ( ! isset($all_coll[$sbas_id])) {
$all_coll[$sbas_id] = array();
$all_coll[$sbas_id]['name_sbas'] = $databox->get_viewname();
$all_coll[$sbas_id]['name_sbas'] = $databox->get_label($this->app['locale.I18n']);
}
$all_coll[$sbas_id]['sbas_collections'][] = array(
'base_id' => $base_id,
@@ -279,7 +279,7 @@ class module_report_dashboard implements module_report_dashboard_componentInterf
$this->authorizedCollection[] = array(
'sbas_id' => (int) $sbas,
'coll' => implode(',', $listeColl),
'name' => phrasea::sbas_names($sbas, $this->app)
'name' => phrasea::sbas_labels($sbas, $this->app)
);
}
@@ -298,7 +298,7 @@ class module_report_dashboard implements module_report_dashboard_componentInterf
$all_coll = $this->getAllColl();
$liste = '';
foreach ($all_coll as $sbas => $info) {
$liste .= phrasea::sbas_names($sbas, $this->app) . ' ' . $separator . ' ';
$liste .= phrasea::sbas_labels($sbas, $this->app) . ' ' . $separator . ' ';
}
return $liste;