/** * Rearm the timer * * @return boolean */ protected function _rearmTimer() { $delay = $this->_options[self::OPT_INTER_DIGIT_TIMEOUT]; $this->_timer->setContextParams(array('timeoutType' => self::TIMEOUT_INTERDIGIT)); if ($this->_timer->isArmed()) { return $this->_timer->rearm($delay); } else { $this->_timer->setOptions(array(Streamwide_Engine_Timer_Timeout::OPT_DELAY => $delay)); $this->_timer->addEventListener(Streamwide_Engine_Events_Event::TIMEOUT, array('callback' => array($this, 'onTimeout'), 'options' => array('autoRemove' => 'before'))); return $this->_timer->arm(); } }