protected function writeFragment($fragment) {
		$fileHandle = fopen($this->outputFile, $this->writeMode);

		fwrite($fileHandle, $fragment);
		fclose($fileHandle);

		// appends to the file initially created with $writeMode = "w"
		$this->writeMode = 'a';
	}
protected function writeFragment($fragment) {
		$fileHandle = fopen($this->outputFile, $this->writeMode);

		fwrite($fileHandle, $fragment);
		fclose($fileHandle);

		// appends to the file initially created with $writeMode = "w"
		$this->writeMode = 'a';
	}
protected function writeFragment ( $ fragment ) { $ fileHandle = fopen ( $ this -> outputFile , $ this -> writeMode ) ; fwrite ( $ fileHandle , $ fragment ) ; fclose ( $ fileHandle ) ; // appends to the file initially created with $writeMode = "w"
 $ this -> writeMode = 'a' ; }
Writes an HTML fragment to the output file.

@param $fragment string
The HTML fragment to write.
Writes an HTML fragment to the output file .