NextDom\Helpers\PrepareView
Classe de support à l'affichage des contenus HTML
Synopsis
class PrepareView
{
- // members
- private array $currentConfig = ;
- // methods
- public void initConfig()
- public bool firstUseAlreadyShowed()
- public void showSpecialPage()
- private void initHeaderData()
- private void initJsPool()
- private void initCssPool()
- private string|null getContentFromRoute()
- private Route getControllerRouteData()
- private bool userCanUseRoute()
- private string|null getContentFromControllerRouteData()
- public void showModal()
- public void showContentByAjax()
- public void showContent()
- private string getHomeLink()
- public mixed initPluginsData()
- private void initPluginsEvents()
- private void initMenu()
- private mixed getContent()
- public void getContentByAjax()
Members
private
- $currentConfig
Methods
private
- getContent() — Get the content of the route
- getContentFromControllerRouteData() — Load routes file and show content depends of the route
- getContentFromRoute() — Load routes file and show content depends of the route
- getControllerRouteData() — Get the controller data of the specified route
- getHomeLink() — Get the current home link
- initCssPool()
- initHeaderData() — Initialise HTML header data
- initJsPool() — Initialise javascript files to include
- initMenu() — Initialise data for the menu
- initPluginsEvents() — Add list of plugins events javascripts files
- userCanUseRoute() — Test if the connected user can use the route
public
- firstUseAlreadyShowed() — Test if first use page must be showed
- getContentByAjax() — Response to an Ajax request
- initConfig() — Read configuration
- initPluginsData() — Initialize plugins informations necessary for the menu
- showContent() — Full process render page
- showContentByAjax() — Response to an Ajax request
- showModal() — Show modal window.
- showSpecialPage() — Used for display special pages that do not need all process (Connection, First Use)