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 counting aggregator.
11 */
12class plugin_strata_aggregate_count extends plugin_strata_aggregate {
13    function aggregate($values, $hint = null) {
14        return array(count($values));
15    }
16
17    function getInfo() {
18        return array(
19            'desc'=>'Counts the number of items.',
20            'tags'=>array()
21        );
22    }
23}
24