title = "Untitled Document";
$this->htmlHead = "";
$this->htmlBody = "";
}
/**
* Set the document file name
* @param string $docfile
* @return void
*/
protected function setDocFileName($docfile)
{
$this->docFile = $docfile;
if(!preg_match("/\.doc$/i", $this->docFile))
{
$this->docFile .= ".doc";
}
return;
}
public function setTitle($title)
{
$this->title = $title;
}
/**
* Return header of MS Doc format
*
* @return String
*/
protected function getHeader()
{
$return = <<
$this->title
$this->htmlHead
EOH;
return $return;
}
/**
* Return footer
*
* @return String
*/
protected function getFotter()
{
return "