24 define(
'PUBLISHING_MODE_OPEN', 0);
25 define(
'PUBLISHING_MODE_SUBSCRIPTION', 1);
26 define(
'PUBLISHING_MODE_NONE', 2);
28 import(
'lib.pkp.classes.context.Context');
37 $titleArray = $this->
getData(
'name');
41 if (isset($titleArray[$locale]))
return $titleArray[$locale];
51 $logoArray = $this->
getData(
'pageHeaderLogoImage');
53 if (isset($logoArray[$locale]))
return $logoArray[$locale];
67 return ASSOC_TYPE_JOURNAL;
91 $metricTypes = array();
92 foreach ($reportPlugins as $reportPlugin) {
93 $pluginMetricTypes = $reportPlugin->getMetricTypes();
94 if ($withDisplayNames) {
95 foreach ($pluginMetricTypes as $metricType) {
96 $metricTypes[$metricType] = $reportPlugin->getMetricDisplayType($metricType);
99 $metricTypes = array_merge($metricTypes, $pluginMetricTypes);
115 $defaultMetricType = $this->
getData(
'defaultMetricType');
119 if (empty($defaultMetricType)) {
120 if (count($availableMetrics) === 1) {
122 $defaultMetricType = $availableMetrics[0];
126 $defaultMetricType =
$application->getDefaultMetricType();
129 if (!in_array($defaultMetricType, $availableMetrics))
return null;
131 return $defaultMetricType;
149 function getMetrics($metricType =
null, $columns = array(), $filter = array(), $orderBy = array(), $range =
null) {
151 $filter[STATISTICS_DIMENSION_CONTEXT_ID] = $this->
getId();
153 return $application->getMetrics($metricType, $columns, $filter, $orderBy, $range);