Exemple #1
0
 /**
  * Destructor
  */
 public function destroy()
 {
     if (isset($this->_callLeg)) {
         unset($this->_callLeg);
     }
     parent::destroy();
 }
Exemple #2
0
 /**
  * Destructor
  */
 public function destroy()
 {
     if (isset($this->_leftCallLeg)) {
         unset($this->_leftCallLeg);
     }
     if (isset($this->_rightCallLeg)) {
         unset($this->_rightCallLeg);
     }
     parent::destroy();
 }
Exemple #3
0
 /**
  * Destructor
  */
 public function destroy()
 {
     if (isset($this->_timer)) {
         $this->_timer->destroy();
         unset($this->_timer);
     }
     if (isset($this->_relayer)) {
         $this->_relayer->destroy();
         unset($this->_relayer);
     }
     parent::destroy();
 }
Exemple #4
0
 /**
  * Resets the widget's properties to the initial state
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     $this->_counter->reset();
     $this->_timer->reset();
     $this->_dtmfHandler->reset();
     $this->_mediaPlayer->reset();
     $this->_menuInitialized = false;
 }
Exemple #5
0
 /**
  * @see Engine/Streamwide_Engine_Widget#flushEventListeners()
  */
 public function flushEventListeners(array $criteria = null)
 {
     return $this->_widget->flushEventListeners($criteria);
 }
Exemple #6
0
 /**
  * Reset the widget to the initial state
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     $this->_relayer->reset();
     $this->_timer->reset();
     $this->_mediaPlayer->reset();
     $this->_forcedFaxNegotiator->reset();
     $this->_waitUpdateConfirmation = false;
     $this->_stateManager->setState(self::STATE_READY);
 }
Exemple #7
0
 /**
  * Reset the widget
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     $this->_currentCount = null;
     if ($this->isRunning()) {
         $this->stop();
     }
 }
Exemple #8
0
 /**
  * Reset the widget
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     $this->_connector->reset();
     $this->_reconnector->reset();
 }
Exemple #9
0
 /**
  * Reset the recorder
  *
  * @see Engine/Streamwide_Engine_Widget#reset()
  */
 public function reset()
 {
     parent::reset();
     if ($this->isRecording()) {
         $this->stop();
     }
     if (isset($this->_timer)) {
         $this->_timer->reset();
     }
     $this->_storage = null;
     $this->_recordingStartTime = 0;
     $this->_recordingStopTime = 0;
 }
Exemple #10
0
 /**
  * Resets the timer to the initial state
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     if ($this->isArmed()) {
         $this->disarm();
     }
 }
Exemple #11
0
 public function destroy()
 {
     if (isset($this->_asrCallLeg)) {
         unset($this->_asrCallLeg);
     }
     if (isset($this->_mediaRecorder)) {
         $this->_mediaRecorder->destroy();
         unset($this->_mediaRecorder);
     }
     parent::destroy();
 }
Exemple #12
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->_registry->set(SW_ENGINE_CONTROLLER, $this, false);
     $this->_initDefaultOptions();
 }
Exemple #13
0
 /**
  * Destructor
  *
  * @return void
  */
 public function destroy()
 {
     if (isset($this->_leftCallLeg)) {
         unset($this->_leftCallLeg);
     }
     if (isset($this->_rightCallLeg)) {
         unset($this->_rightCallLeg);
     }
     if (isset($this->_relayer)) {
         $this->_relayer->destroy();
         unset($this->_relayer);
     }
     if (isset($this->_timer)) {
         $this->_timer->destroy();
         unset($this->_timer);
     }
     parent::destroy();
 }
Exemple #14
0
 /**
  * Set the default event dispatcher class
  *
  * @param string $defaultEventDispatcherClass
  * @return void
  */
 public static function setDefaultEventDispatcherClass($defaultEventDispatcherClass)
 {
     if (!is_string($defaultEventDispatcherClass)) {
         return;
     }
     try {
         $r = new ReflectionClass($defaultEventDispatcherClass);
         if ($r->isSubclassOf('Streamwide_Event_Dispatcher_Interface') && $r->isInstantiable()) {
             self::$_defaultEventDispatcherClass = $defaultEventDispatcherClass;
         }
     } catch (Exception $e) {
     }
 }
Exemple #15
0
 /**
  * Reset the widget
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     $this->_counter->reset();
     $this->_timer->reset();
     $this->_dtmfHandler->reset();
     $this->_mediaPlayer->reset();
     $this->_number = '';
     $this->_history = array();
 }
Exemple #16
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->_initDefaultOptions();
 }
Exemple #17
0
 /**
  * @see Engine/Streamwide_Engine_Widget#reset()
  */
 public function reset()
 {
     parent::reset();
     $this->_stateManager->setState(self::STATE_READY);
 }
Exemple #18
0
 /**
  * Reset the player
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     if ($this->isPlaying() || $this->isPaused()) {
         $this->stop();
     }
     if (!$this->isReady()) {
         $this->_stateManager->setState(self::STATE_READY);
     }
     $this->_playList = array();
     $this->_eofReceived = false;
 }
Exemple #19
0
 /**
  * Reset the widget
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     if ($this->isDetecting()) {
         $this->stopDetection();
     }
 }
Exemple #20
0
 /**
  * @see Engine/Streamwide_Engine_Widget#reset()
  */
 public function reset()
 {
     parent::reset();
     $this->_eventsList = array();
 }
Exemple #21
0
 /**
  * Resets the handler
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     if ($this->isListening()) {
         $this->stopListening();
     }
     $this->_receivedDtmfs = array();
     $this->_handledDtmfs = array();
 }
Exemple #22
0
 /**
  * Reset the widget to the initial state
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     $this->_relayer->reset();
     $this->_forcedFaxNegotiator->reset();
     if (isset($this->_faxToneDetector)) {
         $this->_faxToneDetector->reset();
     }
     if (isset($this->_timer)) {
         $this->_timer->reset();
     }
     $this->_waitUpdateConfirmation = false;
     $this->_faxToneDetected = false;
     $this->_audioReinviteTimedOut = false;
     $this->_faxPages = array();
     $this->_stateManager->setState(self::STATE_READY);
 }