Inheritance: extends KernelLoader
Example #1
0
 /**
  * @param KernelInterface $kernel
  * @param string          $module The module wherefore this is the configuration-file.
  */
 public function __construct(KernelInterface $kernel, $module)
 {
     parent::__construct($kernel);
     $this->setModule($module);
     // read the possible actions based on the files
     $this->setPossibleActions();
 }
Example #2
0
 /**
  * @param KernelInterface $kernel
  */
 public function __construct(KernelInterface $kernel)
 {
     parent::__construct($kernel);
     // store for later use throughout the application
     $this->getContainer()->set('navigation', $this);
     $this->URL = $this->getContainer()->get('url');
     // check if navigation cache file exists
     if (!is_file(self::getCacheDirectory() . 'navigation.php')) {
         $this->buildCache();
     }
     // check if editor_link_list_LANGUAGE.js cache file exists
     if (!is_file(FRONTEND_CACHE_PATH . '/Navigation/editor_link_list_' . BackendLanguage::getWorkingLanguage() . '.js')) {
         BackendPagesModel::buildCache(BackendLanguage::getWorkingLanguage());
     }
     $navigation = array();
     // require navigation-file
     require self::getCacheDirectory() . 'navigation.php';
     // load it
     $this->navigation = (array) $navigation;
     $this->navigation = $this->addActiveStateToNavigation($this->navigation);
     // cleanup navigation (not needed for god user)
     if (!Authentication::getUser()->isGod()) {
         $this->navigation = $this->cleanup($this->navigation);
     }
 }
Example #3
0
 /**
  * @param KernelInterface $kernel
  */
 public function __construct(KernelInterface $kernel)
 {
     parent::__construct($kernel);
     $this->getContainer()->set('header', $this);
     // grab from the reference
     $this->URL = $this->getContainer()->get('url');
     $this->tpl = $this->getContainer()->get('template');
 }
Example #4
0
 /**
  * @param KernelInterface $kernel
  */
 public function __construct(KernelInterface $kernel)
 {
     parent::__construct($kernel);
     // add to registry
     $this->getContainer()->set('url', $this);
     // fetch the request object from the container
     $this->request = $this->get('request');
     $this->processQueryString();
 }
Example #5
0
 /**
  * The constructor will set some properties. It populates the parameter array with urldecoded
  * values for easy-use.
  *
  * @param KernelInterface $kernel
  */
 public function __construct(KernelInterface $kernel)
 {
     parent::__construct($kernel);
     // get objects from the reference so they are accessible from the action-object
     $this->tpl = $this->getContainer()->get('template');
     $this->URL = $this->getContainer()->get('url');
     $this->header = $this->getContainer()->get('header');
     // store the current module and action (we grab them from the URL)
     $this->setModule($this->URL->getModule());
     $this->setAction($this->URL->getAction());
     // populate the parameter array
     $this->parameters = $this->get('request')->query->all();
 }
Example #6
0
 /**
  * @param KernelInterface $kernel
  */
 public function __construct(KernelInterface $kernel)
 {
     parent::__construct($kernel);
     // store for later use throughout the application
     $this->getContainer()->set('navigation', $this);
     $this->URL = $this->getContainer()->get('url');
     // check if navigation cache file exists
     if (!is_file(BACKEND_CACHE_PATH . '/Navigation/navigation.php')) {
         $this->buildCache();
     }
     $navigation = array();
     // require navigation-file
     require_once BACKEND_CACHE_PATH . '/Navigation/navigation.php';
     // load it
     $this->navigation = (array) $navigation;
     // cleanup navigation (not needed for god user)
     if (!Authentication::getUser()->isGod()) {
         $this->navigation = $this->cleanup($this->navigation);
     }
 }
Example #7
0
 /**
  * You have to specify the action and module so we know what to do with this instance
  *
  * @param KernelInterface $kernel
  */
 public function __construct(KernelInterface $kernel)
 {
     parent::__construct($kernel);
     // grab stuff from the reference and store them in this object (for later/easy use)
     $this->tpl = $this->getContainer()->get('template');
 }
Example #8
0
 /**
  * @param KernelInterface $kernel
  * @param string          $module The module wherefore this is the configuration-file.
  */
 public function __construct(KernelInterface $kernel, $module)
 {
     parent::__construct($kernel);
     $this->setModule($module);
 }