1<?php
2/**
3 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
4 * @author     Brend Wanders <b.wanders@utwente.nl>
5 */
6// must be run within Dokuwiki
7if(!defined('DOKU_INC')) die('Meh.');
8
9/**
10 * The unique aggregator.
11 */
12class plugin_strata_aggregate_unique extends plugin_strata_aggregate {
13    function aggregate($values, $hint = null) {
14        return array_unique($values);
15    }
16
17    function getInfo() {
18        return array(
19            'desc'=>'Removes all duplicates.',
20            'tags'=>array()
21        );
22    }
23}
24