public function setFormatCode($pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL)
	{
		if ($pValue == '') {
			$pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL;
		}
		if ($this->_isSupervisor) {
			$styleArray = $this->getStyleArray(array('code' => $pValue));
			$this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
		} else {
			$this->_formatCode = $pValue;
			$this->_builtInFormatCode = self::builtInFormatCodeIndex($pValue);
		}
		return $this;
	}
public function setFormatCode($pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL)
	{
		if ($pValue == '') {
			$pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL;
		}
		if ($this->_isSupervisor) {
			$styleArray = $this->getStyleArray(array('code' => $pValue));
			$this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
		} else {
			$this->_formatCode = $pValue;
			$this->_builtInFormatCode = self::builtInFormatCodeIndex($pValue);
		}
		return $this;
	}
public function setFormatCode ( $ pValue = PHPExcel_Style_NumberFormat :: FORMAT_GENERAL ) { if ( $ pValue == '' ) { $ pValue = PHPExcel_Style_NumberFormat :: FORMAT_GENERAL ; } if ( $ this -> _isSupervisor ) { $ styleArray = $ this -> getStyleArray ( array ( 'code' => $ pValue ) ) ; $ this -> getActiveSheet ( ) -> getStyle ( $ this -> getSelectedCells ( ) ) -> applyFromArray ( $ styleArray ) ; } else { $ this -> _formatCode = $ pValue ; $ this -> _builtInFormatCode = self :: builtInFormatCodeIndex ( $ pValue ) ; } return $ this ; }
Set Format Code

@param string $pValue
@return PHPExcel_Style_NumberFormat
Set Format Code