lib/PHPWord/PHPWord/Section/Table/Cell.php
public function addPreserveText($text, $styleFont = null, $styleParagraph = null) {
		if($this->_insideOf == 'footer' || $this->_insideOf == 'header') {
			$ptext = new PHPWord_Section_Footer_PreserveText($text, $styleFont, $styleParagraph);
			$this->_elementCollection[] = $ptext;
			return $ptext;
		} else {
			trigger_error('addPreserveText only supported in footer/header.');
		}
	}
public function addPreserveText($text, $styleFont = null, $styleParagraph = null) {
		if($this->_insideOf == 'footer' || $this->_insideOf == 'header') {
			$ptext = new PHPWord_Section_Footer_PreserveText($text, $styleFont, $styleParagraph);
			$this->_elementCollection[] = $ptext;
			return $ptext;
		} else {
			trigger_error('addPreserveText only supported in footer/header.');
		}
	}
public function addPreserveText ( $ text , $ styleFont = null , $ styleParagraph = null ) { if ( $ this -> _insideOf == 'footer' || $ this -> _insideOf == 'header' ) { $ ptext = new PHPWord_Section_Footer_PreserveText ( $ text , $ styleFont , $ styleParagraph ) ; $ this -> _elementCollection [ ] = $ ptext ; return $ ptext ; } else { trigger_error ( 'addPreserveText only supported in footer/header.' ) ; } }
Add a PreserveText Element

@param string $text
@param mixed $styleFont
@param mixed $styleParagraph
@return PHPWord_Section_Footer_PreserveText
Add a PreserveText Element