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

@@ -38,7 +38,7 @@ class module_console_fieldsList extends Command
$output->writeln(
sprintf(
"\n ---------------- \nOn databox %s (sbas_id %d) :\n"
, $databox->get_viewname()
, $databox->get_label($this->container['locale.I18n'])
, $databox->get_sbas_id()
)
);

View File

@@ -53,7 +53,7 @@ class module_console_sphinxGenerateSuggestion extends Command
$databox = $this->getService('phraseanet.appbox')->get_databox($sbas_id);
$output->writeln("process Databox " . $databox->get_viewname() . " / $index\n");
$output->writeln("process Databox " . $databox->get_label($this->container['locale.I18n']) . " / $index\n");
if ( ! is_executable("/usr/local/bin/indexer")) {
$output->writeln("<error>'/usr/local/bin/indexer' is not executable</error>");

View File

@@ -126,7 +126,7 @@ class module_console_systemExport extends Command
$total = $errors = 0;
foreach ($this->getService('phraseanet.appbox')->get_databoxes() as $databox) {
$output->writeln(sprintf("Processing <info>%s</info>", $databox->get_viewname()));
$output->writeln(sprintf("Processing <info>%s</info>", $databox->get_label($this->container['locale.I18n'])));
if (count($restrictSbasIds) > 0 && ! in_array($databox->get_sbas_id(), $restrictSbasIds)) {
$output->writeln(sprintf("Databox not selected, bypassing ..."));