Class AdminLayoutHttpControllerResponse

Class AdminLayoutHttpControllerResponse

This class will be used for rendering the new Admin pages which must be explicitly written in templates. These templates can extend any of the existing admin layouts by themselves.

Child controllers can you the "init" method to initialize their dependencies

HttpControllerResponse implements HttpControllerResponseInterface
AdminLayoutHttpControllerResponse
Package: Http
Category: System
Extends: HttpControllerResponse
Located at Services/System/Http/AdminLayoutHttpControllerResponse.inc.php

Methods summary

public __construct( NonEmptyStringType $title, ExistingFile $template, KeyValueCollection $data = null, AssetCollectionInterface $assets = null, ContentNavigationCollectionInterface $contentNavigation = null, ContentView $contentView = null )

AdminLayoutHttpViewController constructor.

protected _render( void )

Render the provided template.

protected _getTranslations( void ) : array

Get the default and assets translations.

protected _setInitialMessages( void )

Set initial messages for new admin layout.

Methods inherited from HttpControllerResponse

getBody(), getHeaders()

Properties summary

protected $title : string

Page Title


		
protected $template : string

Template Path


		
protected $data : KeyValueCollection

Template data.


		
protected $assets : AssetCollectionInterface

Page Assets


		
protected $contentNavigation : ContentNavigationCollectionInterface

Content Sub Navigation


		
protected $contentView : ContentView

ContentView instance.


		

Properties inherited from HttpControllerResponse

$httpBody, $httpHeadersArray