*/\r
public function addText($text, $styleFont = null, $styleParagraph = null) \r
{\r
- require_once __DIR__ . '/Text.php';\r
+ require_once __DIR__ . '/Text.php';\r
//$givenText = utf8_encode($text);\r
$text = @iconv("UTF-8", "UTF-8//IGNORE", $text);\r
- require_once 'Text.php';\r
+ \r
$text = new Document_Word_Writer_Section_Text($text, $styleFont, $styleParagraph);\r
$this->_elementCollection[] = $text;\r
return $text;\r
*/\r
public function addTextBreak($count = 1) \r
{\r
- require_once 'TextBreak.php';\r
+ require_once __DIR__ . '/TextBreak.php';\r
for($i=1; $i<=$count; $i++) {\r
$this->_elementCollection[] = new Document_Word_Writer_Section_TextBreak();\r
}\r
*/\r
public function createTextRun($styleParagraph = null) \r
{\r
- require_once 'TextRun.php';\r
+ require_once __DIR__ . '/TextRun.php';\r
$textRun = new Document_Word_Writer_Section_TextRun($styleParagraph);\r
$this->_elementCollection[] = $textRun;\r
return $textRun;\r
*/\r
public function addTable($style = null) \r
{\r
- require_once 'Table.php';\r
+ require_once __DIR__ . '/Table.php';\r
$table = new Document_Word_Writer_Section_Table('footer', $this->_footerCount, $style);\r
$this->_elementCollection[] = $table;\r
return $table;\r
*/\r
public function addImage($src, $style = null) \r
{\r
- require_once 'Image.php';\r
+ require_once __DIR__ . '/Image.php';\r
$image = new Document_Word_Writer_Section_Image($src, $style);\r
\r
if(!is_null($image->getSource())) {\r
*/\r
public function addMemoryImage($link, $style = null) \r
{\r
- require_once 'MemoryImage.php';\r
+ require_once __DIR__ . '/MemoryImage.php';\r
$memoryImage = new Document_Word_Writer_Section_MemoryImage($link, $style);\r
if(!is_null($memoryImage->getSource())) {\r
$rID = Document_Word_Writer_Media::addFooterMediaElement($this->_footerCount, $link, $memoryImage);\r