Document/Word/Writer/Section/Footer.php
authorAlan Knowles <alan@roojs.com>
Thu, 7 Apr 2016 08:09:00 +0000 (16:09 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 7 Apr 2016 08:09:00 +0000 (16:09 +0800)
Document/Word/Writer/Section/Footer.php

index 8055e22..9fcd7e1 100644 (file)
@@ -75,10 +75,10 @@ class Document_Word_Writer_Section_Footer
         */\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
@@ -91,7 +91,7 @@ class Document_Word_Writer_Section_Footer
         */\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
@@ -104,7 +104,7 @@ class Document_Word_Writer_Section_Footer
         */\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
@@ -118,7 +118,7 @@ class Document_Word_Writer_Section_Footer
         */\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
@@ -133,7 +133,7 @@ class Document_Word_Writer_Section_Footer
         */\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
@@ -156,7 +156,7 @@ class Document_Word_Writer_Section_Footer
         */\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