mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Rename "phraseanet.configuration" service to "configuration"
This commit is contained in:
@@ -70,7 +70,7 @@ class module_console_checkExtension extends Command
|
||||
$output->writeln("<info>$function</info>");
|
||||
}
|
||||
|
||||
$configuration = $this->getService('phraseanet.configuration');
|
||||
$configuration = $this->getService('configuration');
|
||||
$connexion = $configuration['main']['database'];
|
||||
$hostname = $connexion['host'];
|
||||
$port = $connexion['port'];
|
||||
@@ -167,7 +167,7 @@ class module_console_checkExtension extends Command
|
||||
, $base["sbas_id"]
|
||||
, $base["searchcoll"]
|
||||
, $base["arrayq"]
|
||||
, $this->container['phraseanet.configuration']['main']['key']
|
||||
, $this->container['configuration']['main']['key']
|
||||
, $usrId
|
||||
, false
|
||||
, PHRASEA_MULTIDOC_DOCONLY
|
||||
|
@@ -624,7 +624,7 @@ class module_report_activity extends module_report
|
||||
$result['top_ten_poiddoc'] = array();
|
||||
$result['top_ten_poidprev'] = array();
|
||||
|
||||
$params = array(':site_id' => $app['phraseanet.configuration']['main']['key']);
|
||||
$params = array(':site_id' => $app['configuration']['main']['key']);
|
||||
|
||||
$datefilter = module_report_sqlfilter::constructDateFilter($dmin, $dmax);
|
||||
$params = array_merge($params, $datefilter['params']);
|
||||
@@ -704,7 +704,7 @@ class module_report_activity extends module_report
|
||||
$collfilter =
|
||||
module_report_sqlfilter::constructCollectionFilter($app, $list_coll_id);
|
||||
|
||||
$params = array(':site_id' => $app['phraseanet.configuration']['main']['key']);
|
||||
$params = array(':site_id' => $app['configuration']['main']['key']);
|
||||
$params = array_merge($params, $datefilter['params'], $collfilter['params']);
|
||||
|
||||
$sql = "
|
||||
@@ -751,7 +751,7 @@ class module_report_activity extends module_report
|
||||
$collfilter =
|
||||
module_report_sqlfilter::constructCollectionFilter($app, $list_coll_id);
|
||||
|
||||
$params = array(':site_id' => $app['phraseanet.configuration']['main']['key']);
|
||||
$params = array(':site_id' => $app['configuration']['main']['key']);
|
||||
$params = array_merge($params, $datefilter['params'], $collfilter['params']);
|
||||
|
||||
$sql = "
|
||||
@@ -792,7 +792,7 @@ class module_report_activity extends module_report
|
||||
$collfilter =
|
||||
module_report_sqlfilter::constructCollectionFilter($app, $list_coll_id);
|
||||
|
||||
$params = array(':site_id' => $app['phraseanet.configuration']['main']['key']);
|
||||
$params = array(':site_id' => $app['configuration']['main']['key']);
|
||||
$params = array_merge($params, $datefilter['params'], $collfilter['params']);
|
||||
|
||||
$sql = "
|
||||
@@ -832,7 +832,7 @@ class module_report_activity extends module_report
|
||||
$collfilter =
|
||||
module_report_sqlfilter::constructCollectionFilter($app, $list_coll_id);
|
||||
|
||||
$params = array(':site_id' => $app['phraseanet.configuration']['main']['key']);
|
||||
$params = array(':site_id' => $app['configuration']['main']['key']);
|
||||
$params = array_merge($params, $datefilter['params'], $collfilter['params']);
|
||||
|
||||
$sql = "
|
||||
|
@@ -141,7 +141,7 @@ class module_report_connexion extends module_report
|
||||
$collfilter = module_report_sqlfilter::constructCollectionFilter($app, $list_coll_id);
|
||||
|
||||
$params = array_merge(array(
|
||||
':site_id' => $app['phraseanet.configuration']['main']['key']
|
||||
':site_id' => $app['configuration']['main']['key']
|
||||
),
|
||||
$datefilter['params'],
|
||||
$collfilter['params']
|
||||
|
@@ -174,7 +174,7 @@ class module_report_download extends module_report
|
||||
{
|
||||
$conn = connection::getPDOConnection($app, $sbas_id);
|
||||
|
||||
$params = array(':site_id' => $app['phraseanet.configuration']['main']['key']);
|
||||
$params = array(':site_id' => $app['configuration']['main']['key']);
|
||||
$datefilter = module_report_sqlfilter::constructDateFilter($dmin, $dmax);
|
||||
$collfilter = module_report_sqlfilter::constructCollectionFilter($app, $list_coll_id);
|
||||
$params = array_merge($params, $datefilter['params'], $collfilter['params']);
|
||||
@@ -210,7 +210,7 @@ class module_report_download extends module_report
|
||||
$databox = $app['phraseanet.appbox']->get_databox((int) $sbas_id);
|
||||
$conn = $databox->get_connection();
|
||||
|
||||
$params = array(':site_id' => $app['phraseanet.configuration']['main']['key']);
|
||||
$params = array(':site_id' => $app['configuration']['main']['key']);
|
||||
$datefilter = module_report_sqlfilter::constructDateFilter($dmin, $dmax);
|
||||
$collfilter = module_report_sqlfilter::constructCollectionFilter($app, $list_coll_id);
|
||||
$params = array_merge($params, $datefilter['params'], $collfilter['params']);
|
||||
|
@@ -64,7 +64,7 @@ class module_report_sqlfilter
|
||||
{
|
||||
$finalfilter = '';
|
||||
|
||||
$params = array(':log_site' => $this->app['phraseanet.configuration']['main']['key']);
|
||||
$params = array(':log_site' => $this->app['configuration']['main']['key']);
|
||||
|
||||
if ($this->filter['date']) {
|
||||
$finalfilter .= $this->filter['date']['sql'] . ' AND ';
|
||||
@@ -88,7 +88,7 @@ class module_report_sqlfilter
|
||||
$params = array();
|
||||
|
||||
$sql = 'log.site = :log_site_gv_filter';
|
||||
$params[':log_site_gv_filter'] = $this->app['phraseanet.configuration']['main']['key'];
|
||||
$params[':log_site_gv_filter'] = $this->app['configuration']['main']['key'];
|
||||
|
||||
return array('sql' => $sql, 'params' => $params);
|
||||
}
|
||||
|
Reference in New Issue
Block a user