/**
  * Load your component.
  * 
  * @param \Cx\Core\ContentManager\Model\Entity\Page $page       The resolved page
  */
 public function load(\Cx\Core\ContentManager\Model\Entity\Page $page)
 {
     global $objTemplate, $objDatabase, $objInit, $act;
     switch ($this->cx->getMode()) {
         case \Cx\Core\Core\Controller\Cx::MODE_BACKEND:
             $this->cx->getTemplate()->addBlockfile('CONTENT_OUTPUT', 'content_master', 'LegacyContentMaster.html');
             $cachedRoot = $this->cx->getTemplate()->getRoot();
             $this->cx->getTemplate()->setRoot($this->getDirectory() . '/View/Template/Backend');
             \Permission::checkAccess(6, 'static');
             $cm = new ContentManager($act, $objTemplate, $objDatabase, $objInit);
             $cm->getPage();
             $this->cx->getTemplate()->setRoot($cachedRoot);
             break;
     }
 }
 /**
  * Load your component.
  *
  * @param \Cx\Core\ContentManager\Model\Entity\Page $page       The resolved page
  */
 public function load(\Cx\Core\ContentManager\Model\Entity\Page $page)
 {
     global $objTemplate, $objDatabase, $objInit, $act, $subMenuTitle, $_ARRAYLANG;
     switch ($this->cx->getMode()) {
         case \Cx\Core\Core\Controller\Cx::MODE_BACKEND:
             // @todo: This should be set by SystemComponentBackendController
             $subMenuTitle = $_ARRAYLANG['TXT_CONTENT_MANAGER'];
             $this->cx->getTemplate()->addBlockfile('CONTENT_OUTPUT', 'content_master', 'LegacyContentMaster.html');
             $cachedRoot = $this->cx->getTemplate()->getRoot();
             $this->cx->getTemplate()->setRoot($this->getDirectory() . '/View/Template/Backend');
             \Permission::checkAccess(6, 'static');
             $cm = new ContentManager($act, $objTemplate, $objDatabase, $objInit);
             $cm->getPage();
             $this->cx->getTemplate()->setRoot($cachedRoot);
             break;
     }
 }