/** * Destructor */ public function destroy() { if (isset($this->_relayer)) { $this->_relayer->destroy(); unset($this->_relayer); } parent::destroy(); }
/** * Destructor */ public function destroy() { if (isset($this->_failEvent)) { unset($this->_failEvent); } if (isset($this->_remoteSipCallLeg)) { unset($this->_remoteSipCallLeg); } if (isset($this->_iterator)) { unset($this->_iterator); } parent::destroy(); }
/** * @param string $method * @param array $args * @throws RuntimeException */ public function __call($method, $args) { $widget = $this->getDecoratedWidget(); $shouldInit = false; if ($widget instanceof Streamwide_Engine_Call_Leg_Connector && strtolower($method) === 'connect') { $shouldInit = true; } elseif ($widget instanceof Streamwide_Engine_Automatic_Signal_Relayer && strtolower($method) === 'start') { $shouldInit = true; } if ($shouldInit) { $this->_subscribeToEngineEvents(); } return parent::__call($method, $args); }
/** * @see Engine/Widget/Streamwide_Engine_Widget_Decorator#reset() */ public function reset() { parent::reset(); $controller = $this->getController(); $controller->removeEventListener(Streamwide_Engine_Events_Event::OK, array('callback' => array($this, 'onSignalReceived'))); $this->_event = null; $this->_earlyMediaAvailable = false; }
/** * @see Engine/Widget/Streamwide_Engine_Widget_Decorator#reset() */ public function reset() { parent::reset(); $controller = $this->getController(); $controller->removeEventListener(Streamwide_Engine_Events_Event::OK, array('callback' => array($this, 'onSignalReceived'))); if (null !== $this->_timer) { $this->_timer->reset(); } $this->_event = null; }