Class AbstractView

Direct known subclasses

Concrete\Core\Block\View\BlockView

Abstract
Namespace: Concrete\Core\View
Located at src/View/AbstractView.php

Methods summary

public
# addScopeItems( $items )
public static
public
# __construct( $mixed = false )
protected static
# setRequestInstance( Concrete\Core\View\View $v )
protected static
abstract public
# start( $state )
public
abstract protected
# constructView( $mixed )
abstract public
abstract public
# finishRender( $contents )
abstract public
# action( $action )
public
# addHeaderAsset( $asset )
public
# addFooterAsset( $asset )
public
# addOutputAsset( $asset )
public
# requireAsset( $assetType, $assetHandle = false )
public
# setController( $controller )
public
# setViewTemplate( $template )
public
# post( $key, $defaultValue = null )

Returns the value of the item in the POST array.

abstract protected
protected
# postProcessViewContents( $contents )
protected
public
public
# render( $state = false )
public
# renderViewContents( $scopeItems )
public static string
# url( string $action, string $task = null )

url is a utility function that is used inside a view to setup urls w/tasks and parameters.

public
# setThemeByPath( $path, $theme = null, $wrapper = FILENAME_THEMES_VIEW )
public
# renderError( $title, $error, $errorObj = null )
public
# addHeaderItem( $item )
public
# addFooterItem( $item )
public static View
# getInstance( )

Properties summary

protected static $requestInstance
#
protected static array $requestInstances
# array()
protected array $scopeItems
# array()
public $controller
#
protected $template
#
protected array $outputAssets
# array()