*/ // must be run within Dokuwiki if(!defined('DOKU_INC')) die('Meh.'); /** * The first aggregator. */ class plugin_strata_aggregate_first extends plugin_strata_aggregate { function aggregate($values, $hint = null) { $val = reset($values); if($val === false ) { return array(); } return array($val); } function getInfo() { return array( 'desc'=>'Selects only the first element.', 'tags'=>array() ); } }