RemexHtml/TreeBuilder/Dispatcher.php
public function switchAndSave( $mode ) {
		$this->originalMode = $this->mode;
		$this->mode = $mode;
		$this->handler = $this->dispatchTable[$mode];
		return $this->handler;
	}
public function switchAndSave( $mode ) {
		$this->originalMode = $this->mode;
		$this->mode = $mode;
		$this->handler = $this->dispatchTable[$mode];
		return $this->handler;
	}
public function switchAndSave ( $ mode ) { $ this -> originalMode = $ this -> mode ; $ this -> mode = $ mode ; $ this -> handler = $ this -> dispatchTable [ $ mode ] ; return $ this -> handler ; }
Let the original insertion mode be the current insertion mode, and
switch the insertion mode to some new value. Return the new handler.

@param int $mode
@return InsertionMode
Let the original insertion mode be the current insertion mode and switch the insertion mode to some new value . Return the new handler .