class ErrorView extends View (View source)

Properties

static protected $requestInstance from AbstractView
static protected $requestInstances from AbstractView
protected $scopeItems from AbstractView
$controller from AbstractView
protected $template from AbstractView
protected $outputAssets from AbstractView
protected $viewPath from View
protected $innerContentFile from View
protected $themeHandle from View
protected $themeObject from View
protected $themeRelativePath from View
protected $themeAbsolutePath from View
protected $viewPkgHandle from View
protected $themePkgHandle from View
protected $viewRootDirectoryName from View
protected $error

Methods

getViewTemplate()

No description

addScopeItems($items)

No description

static 
getRequestInstance()

No description

__construct($mixed = false)

No description

static 
setRequestInstance(View $v)

No description

static 
revertRequestInstance()

No description

start($state)

Begin the render.

from View
startRender()

No description

from View
constructView($error = false)

No description

setupRender()

No description

finishRender($contents)

No description

from View
action($action)

A shortcut to posting back to the current page with a task and optional parameters. Only works in the context of.

addHeaderAsset($asset)

No description

addFooterAsset($asset)

No description

addOutputAsset($asset)

No description

requireAsset($assetType, $assetHandle = false)

No description

setController($controller)

No description

setViewTemplate($template)

No description

post($key, $defaultValue = null)

Returns the value of the item in the POST array.

onBeforeGetContents()

No description

postProcessViewContents($contents)

No description

from View
onAfterGetContents()

No description

getScopeItems()

No description

render($state = false)

No description

renderViewContents($scopeItems)

No description

from View
static string
url(string $action, string $task = null) deprecated

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

setThemeByPath($path, $theme = null, $wrapper = FILENAME_THEMES_VIEW)

No description

renderError($title, $error, $errorObj = null)

No description

addHeaderItem($item)

No description

addFooterItem($item)

No description

static View
getInstance()

No description

setPackageHandle($pkgHandle)

No description

from View
getThemeDirectory()

No description

from View
getViewPath()

No description

from View
string
getThemePath()

gets the relative theme path for use in templates.

from View
getThemeHandle()

No description

from View
setInnerContentFile($innerContentFile)

No description

from View
setViewRootDirectoryName($directory)

No description

from View
inc($file, $args = [])

No description

from View
setViewTheme($theme)

No description

from View
loadViewThemeObject()

Load all the theme-related variables for which theme to use for this request.

from View
string
renderInnerContents($scopeItems)

Render the file set to $this->innerContentFile

from View
string
renderTemplate($scopeItems, $innerContent)

Render the file set to $this->template

from View
markHeaderAssetPosition()

Function responsible for outputting header items.

from View
markFooterAssetPosition()

Function responsible for outputting footer items.

from View
getAssetsToOutput()

No description

from View
postProcessAssets($assets)

No description

from View
replaceEmptyAssetPlaceholders($pageContent)

No description

from View
replaceAssetPlaceholders($outputAssets, $pageContent)

No description

from View
outputAssetIntoView($item)

No description

from View
static 
element($_file, $args = null, $_pkgHandle = null)

No description

from View
runControllerTask()

No description

Details

getViewTemplate()

addScopeItems($items)

Parameters

$items

static getRequestInstance()

__construct($mixed = false)

Parameters

$mixed

static protected setRequestInstance(View $v)

Parameters

View $v

static protected revertRequestInstance()

start($state)

Begin the render.

Parameters

$state

startRender()

protected constructView($error = false)

Parameters

$error

setupRender()

finishRender($contents)

Parameters

$contents

action($action)

A shortcut to posting back to the current page with a task and optional parameters. Only works in the context of.

Parameters

$action

addHeaderAsset($asset)

Parameters

$asset

addFooterAsset($asset)

Parameters

$asset

addOutputAsset($asset)

Parameters

$asset

requireAsset($assetType, $assetHandle = false)

Parameters

$assetType
$assetHandle

setController($controller)

Parameters

$controller

setViewTemplate($template)

Parameters

$template

post($key, $defaultValue = null)

Returns the value of the item in the POST array.

Parameters

$key
$defaultValue

protected onBeforeGetContents()

postProcessViewContents($contents)

Parameters

$contents

protected onAfterGetContents()

getScopeItems()

render($state = false)

Parameters

$state

renderViewContents($scopeItems)

Parameters

$scopeItems

static string url(string $action, string $task = null) deprecated

deprecated

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

Parameters

string $action
string $task

Return Value

string $url

setThemeByPath($path, $theme = null, $wrapper = FILENAME_THEMES_VIEW)

Parameters

$path
$theme
$wrapper

renderError($title, $error, $errorObj = null)

Parameters

$title
$error
$errorObj

addHeaderItem($item)

Parameters

$item

addFooterItem($item)

Parameters

$item

static View getInstance()

Return Value

View

setPackageHandle($pkgHandle)

Parameters

$pkgHandle

getThemeDirectory()

getViewPath()

string getThemePath()

gets the relative theme path for use in templates.

Return Value

string $themePath

getThemeHandle()

setInnerContentFile($innerContentFile)

Parameters

$innerContentFile

setViewRootDirectoryName($directory)

Parameters

$directory

inc($file, $args = [])

Parameters

$file
$args

setViewTheme($theme)

Parameters

$theme

protected loadViewThemeObject()

Load all the theme-related variables for which theme to use for this request.

protected string renderInnerContents($scopeItems)

Render the file set to $this->innerContentFile

Parameters

$scopeItems

Return Value

string

protected string renderTemplate($scopeItems, $innerContent)

Render the file set to $this->template

Parameters

$scopeItems
$innerContent

Return Value

string

markHeaderAssetPosition()

Function responsible for outputting header items.

markFooterAssetPosition()

Function responsible for outputting footer items.

protected getAssetsToOutput()

protected postProcessAssets($assets)

Parameters

$assets

protected replaceEmptyAssetPlaceholders($pageContent)

Parameters

$pageContent

protected replaceAssetPlaceholders($outputAssets, $pageContent)

Parameters

$outputAssets
$pageContent

protected outputAssetIntoView($item)

Parameters

$item

static element($_file, $args = null, $_pkgHandle = null)

Parameters

$_file
$args
$_pkgHandle

protected runControllerTask()