2020-05-29 13:41:58 +02:00
|
|
|
<?php
|
|
|
|
$correlations = $this->Hash->extract($row, $field['data_path']);
|
|
|
|
$scope_to_url = array(
|
|
|
|
'event' => $baseurl . '/events/view'
|
|
|
|
);
|
|
|
|
$correlations_html = array();
|
|
|
|
foreach ($correlations as $id => $name) {
|
|
|
|
$correlations_html[] = sprintf(
|
2021-02-09 22:10:26 +01:00
|
|
|
'<a href="%s%s" title="%s">%s</a>',
|
|
|
|
$baseurl,
|
2020-05-29 13:41:58 +02:00
|
|
|
sprintf(
|
|
|
|
'%s/%s',
|
|
|
|
$scope_to_url[empty($scope) ? 'event' : $scope],
|
|
|
|
h($id)
|
|
|
|
),
|
|
|
|
h($name),
|
|
|
|
h($id)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
echo implode(' ', $correlations_html);
|
|
|
|
?>
|