public _getDefaultMetric ( ) : null | string | ||
리턴 | null | string | a metric identifier or null |
function _getDefaultMetric()
{
$application = PKPApplication::getApplication();
$metricType = $application->getDefaultMetricType();
if (empty($metricType)) {
return null;
}
$metricNames = $application->getMetricTypes(true);
if (!isset($metricNames[$metricType])) {
return null;
}
return $metricNames[$metricType];
}