]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/helper/html/class_BaseHtmlHelper.php
Continued:
[core.git] / framework / main / classes / helper / html / class_BaseHtmlHelper.php
index 23862b4e9073f3e593168214f066772e4eee61c2..f2928b9b65c7a2ed5cc10a9f0e37e61a0225ba75 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Helper;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Helper\BaseHelper;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * A general purpose web helper. You should not instance this like all the other
@@ -29,6 +30,12 @@ use Org\Mxchange\CoreFramework\Helper\BaseHelper;
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 abstract class BaseHtmlHelper extends BaseHelper {
+
+       /**
+        * Template engine instance
+        */
+       private $templateInstance = NULL;
+
        /**
         * Protected constructor
         *
@@ -40,4 +47,23 @@ abstract class BaseHtmlHelper extends BaseHelper {
                parent::__construct($className);
        }
 
+       /**
+        * Setter for template engine instances
+        *
+        * @param       $templateInstance       An instance of a CompileableTemplate class
+        * @return      void
+        */
+       protected final function setTemplateInstance (CompileableTemplate $templateInstance) {
+               $this->templateInstance = $templateInstance;
+       }
+
+       /**
+        * Getter for template engine instances
+        *
+        * @return      $templateInstance       An instance of a CompileableTemplate class
+        */
+       public final function getTemplateInstance () {
+               return $this->templateInstance;
+       }
+
 }