Example #1
0
 /**
  * Destructor
  */
 public function destroy()
 {
     if (isset($this->_callLeg)) {
         unset($this->_callLeg);
     }
     parent::destroy();
 }
Example #2
0
 /**
  * Destructor
  */
 public function destroy()
 {
     if (isset($this->_leftCallLeg)) {
         unset($this->_leftCallLeg);
     }
     if (isset($this->_rightCallLeg)) {
         unset($this->_rightCallLeg);
     }
     parent::destroy();
 }
Example #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();
 }
Example #4
0
File: Menu.php Project: cwcw/cms
 /**
  * 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;
 }
Example #5
0
File: Wrapper.php Project: cwcw/cms
 /**
  * @see Engine/Streamwide_Engine_Widget#flushEventListeners()
  */
 public function flushEventListeners(array $criteria = null)
 {
     return $this->_widget->flushEventListeners($criteria);
 }
Example #6
0
File: Sender.php Project: cwcw/cms
 /**
  * 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);
 }
Example #7
0
 /**
  * Reset the widget
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     $this->_currentCount = null;
     if ($this->isRunning()) {
         $this->stop();
     }
 }
Example #8
0
File: Handler.php Project: cwcw/cms
 /**
  * Reset the widget
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     $this->_connector->reset();
     $this->_reconnector->reset();
 }
Example #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;
 }
Example #10
0
File: Timeout.php Project: cwcw/cms
 /**
  * Resets the timer to the initial state
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     if ($this->isArmed()) {
         $this->disarm();
     }
 }
Example #11
0
 public function destroy()
 {
     if (isset($this->_asrCallLeg)) {
         unset($this->_asrCallLeg);
     }
     if (isset($this->_mediaRecorder)) {
         $this->_mediaRecorder->destroy();
         unset($this->_mediaRecorder);
     }
     parent::destroy();
 }
Example #12
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->_registry->set(SW_ENGINE_CONTROLLER, $this, false);
     $this->_initDefaultOptions();
 }
Example #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();
 }
Example #14
0
File: Widget.php Project: cwcw/cms
 /**
  * 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) {
     }
 }
Example #15
0
File: Reader.php Project: cwcw/cms
 /**
  * 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();
 }
Example #16
0
File: Counter.php Project: cwcw/cms
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->_initDefaultOptions();
 }
Example #17
0
 /**
  * @see Engine/Streamwide_Engine_Widget#reset()
  */
 public function reset()
 {
     parent::reset();
     $this->_stateManager->setState(self::STATE_READY);
 }
Example #18
0
File: Player.php Project: cwcw/cms
 /**
  * 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;
 }
Example #19
0
 /**
  * Reset the widget
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     if ($this->isDetecting()) {
         $this->stopDetection();
     }
 }
Example #20
0
File: Relayer.php Project: cwcw/cms
 /**
  * @see Engine/Streamwide_Engine_Widget#reset()
  */
 public function reset()
 {
     parent::reset();
     $this->_eventsList = array();
 }
Example #21
0
File: Handler.php Project: cwcw/cms
 /**
  * Resets the handler
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     if ($this->isListening()) {
         $this->stopListening();
     }
     $this->_receivedDtmfs = array();
     $this->_handledDtmfs = array();
 }
Example #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);
 }