public function shiftColumn($fromColumn=NULL,$toColumn=NULL) {
		$fromColumn = strtoupper($fromColumn);
		$toColumn = strtoupper($toColumn);

		if (($fromColumn !== NULL) && (isset($this->_columns[$fromColumn])) && ($toColumn !== NULL)) {
			$this->_columns[$fromColumn]->setParent();
			$this->_columns[$fromColumn]->setColumnIndex($toColumn);
			$this->_columns[$toColumn] = $this->_columns[$fromColumn];
			$this->_columns[$toColumn]->setParent($this);
			unset($this->_columns[$fromColumn]);

			ksort($this->_columns);
		}

		return $this;
	}
public function shiftColumn($fromColumn=NULL,$toColumn=NULL) {
		$fromColumn = strtoupper($fromColumn);
		$toColumn = strtoupper($toColumn);

		if (($fromColumn !== NULL) && (isset($this->_columns[$fromColumn])) && ($toColumn !== NULL)) {
			$this->_columns[$fromColumn]->setParent();
			$this->_columns[$fromColumn]->setColumnIndex($toColumn);
			$this->_columns[$toColumn] = $this->_columns[$fromColumn];
			$this->_columns[$toColumn]->setParent($this);
			unset($this->_columns[$fromColumn]);

			ksort($this->_columns);
		}

		return $this;
	}
public function shiftColumn ( $ fromColumn = NULL , $ toColumn = NULL ) { $ fromColumn = strtoupper ( $ fromColumn ) ; $ toColumn = strtoupper ( $ toColumn ) ; if ( ( $ fromColumn !== NULL ) && ( isset ( $ this -> _columns [ $ fromColumn ] ) ) && ( $ toColumn !== NULL ) ) { $ this -> _columns [ $ fromColumn ] -> setParent ( ) ; $ this -> _columns [ $ fromColumn ] -> setColumnIndex ( $ toColumn ) ; $ this -> _columns [ $ toColumn ] = $ this -> _columns [ $ fromColumn ] ; $ this -> _columns [ $ toColumn ] -> setParent ( $ this ) ; unset ( $ this -> _columns [ $ fromColumn ] ) ; ksort ( $ this -> _columns ) ; } return $ this ; }
Shift an AutoFilter Column Rule to a different column

Note: This method bypasses validation of the destination column to ensure it is within this AutoFilter range.
Nor does it verify whether any column rule already exists at $toColumn, but will simply overrideany existing value.
Use with caution.

@param	string	$fromColumn		Column name (e.g. A)
@param	string	$toColumn		Column name (e.g. B)
@return PHPExcel_Worksheet_AutoFilter
Shift an AutoFilter Column Rule to a different column