24 define(
'PUBLISHING_MODE_OPEN', 0);
25 define(
'PUBLISHING_MODE_NONE', 2);
27 import(
'lib.pkp.classes.context.Context');
36 $titleArray = $this->
getData(
'name');
40 if (isset($titleArray[$locale]))
return $titleArray[$locale];
50 $logoArray = $this->
getData(
'pageHeaderLogoImage');
52 if (isset($logoArray[$locale]))
return $logoArray[$locale];
66 return ASSOC_TYPE_JOURNAL;
90 $metricTypes = array();
91 foreach ($reportPlugins as $reportPlugin) {
92 $pluginMetricTypes = $reportPlugin->getMetricTypes();
93 if ($withDisplayNames) {
94 foreach ($pluginMetricTypes as $metricType) {
95 $metricTypes[$metricType] = $reportPlugin->getMetricDisplayType($metricType);
98 $metricTypes = array_merge($metricTypes, $pluginMetricTypes);
114 $defaultMetricType = $this->
getData(
'defaultMetricType');
118 if (empty($defaultMetricType)) {
119 if (count($availableMetrics) === 1) {
121 $defaultMetricType = $availableMetrics[0];
125 $defaultMetricType = $application->getDefaultMetricType();
128 if (!in_array($defaultMetricType, $availableMetrics))
return null;
130 return $defaultMetricType;
148 function getMetrics($metricType =
null, $columns = array(), $filter = array(), $orderBy = array(), $range =
null) {
150 $filter[STATISTICS_DIMENSION_CONTEXT_ID] = $this->
getId();
152 return $application->getMetrics($metricType, $columns, $filter, $orderBy, $range);