]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/menu/class_BaseMenu.php
Refacuring:
[core.git] / framework / main / classes / menu / class_BaseMenu.php
index 03879712a18bae144e15ff85aa493b692ca677e1..2defb635302b403f97425e41a294767bdb17010b 100644 (file)
@@ -8,7 +8,7 @@ use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filesystem\FileNotFoundException;
 use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
 use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
-use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Traits\Template\CompileableTemplateTrait;
 
 /**
  * A general menu system class
@@ -33,11 +33,8 @@ use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 abstract class BaseMenu extends BaseFrameworkSystem {
-
-       /**
-        * Template engine instance
-        */
-       private $templateInstance = NULL;
+       // Load traits
+       use CompileableTemplateTrait;
 
        /**
         * Protected constructor
@@ -50,25 +47,6 @@ abstract class BaseMenu extends BaseFrameworkSystem {
                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;
-       }
-
        /**
         * Renders the menu by loading the base template and a menu-specific
         * template.