class AbstractView (View source)

Properties

static protected $requestInstance
static protected $requestInstances
protected $scopeItems
$controller
protected $template
protected $outputAssets

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)

No description

startRender()

No description

constructView($mixed)

No description

setupRender()

No description

finishRender($contents)

No description

action($action)

No description

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

onAfterGetContents()

No description

getScopeItems()

No description

render($state = false)

No description

renderViewContents($scopeItems)

No description

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

Details

getViewTemplate()

addScopeItems($items)

Parameters

$items

static getRequestInstance()

__construct($mixed = false)

Parameters

$mixed

static protected setRequestInstance(View $v)

Parameters

View $v

static protected revertRequestInstance()

abstract start($state)

Parameters

$state

startRender()

abstract protected constructView($mixed)

Parameters

$mixed

abstract setupRender()

abstract finishRender($contents)

Parameters

$contents

abstract action($action)

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

abstract protected onBeforeGetContents()

protected 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