public function next($pointer = 'future')
{
if (is_null($this->now)) {
throw new Horde_Date_Repeater_Exception('Start point must be set before calling next()');
}
if (!in_array($pointer, array('future', 'none', 'past'))) {
throw new Horde_Date_Repeater_Exception("First argument 'pointer' must be one of 'past', 'future', 'none'");
}
}