Trait Props
Direct Known Users
MvcCore\ViewIndirect Known Users
MvcCore\Ext\Forms\View
protected
|
$controller
Currently dispatched controller instance. |
#
NULL
|
protected
array
|
$__protected
All other private properties. |
#
[
/**
* Rendered content.
* @var string
*/
'content' => '',
/**
* Variables store, setted (always from controller)
* through `__set()` magic function.
* @var array
*/
'store' => [],
/**
* Helpers instances storage for current view instance.
* Keys in array are helper method names.
* Every view has it's own helpers storage to recognize
* if helper has been already used inside current view or not.
* @var array
*/
'helpers' => [],
/**
* Boolean about if build in helpers are initialized.
* @var boolean
*/
'buildInHelpersInit'=> FALSE,
/**
* `0` - Rendering mode switch to render views in two ways:
* `\MvcCore\IView::RENDER_WITH_OB_FROM_ACTION_TO_LAYOUT`:
* - Render action view first into output buffer, then render layout view
* wrapped around rendered action view string also into output buffer.
* Then set up rendered content from output buffer into response object
* and then send HTTP headers and content after all.
* `\MvcCore\IView::RENDER_WITHOUT_OB_CONTINUOUSLY`:
* - Special rendering mode to continuously sent larger data to client.
* Render layout view and render action view together inside it without
* output buffering. There is not used reponse object body property for
* this rendering mode. Http headers are sent before view rendering.
* `1` - `string` - controller name dashed (or action name dashed).
* `2` - `string` - action name dashed.
* @var int
*/
'renderArgs' => [\MvcCore\IView::RENDER_WITH_OB_FROM_ACTION_TO_LAYOUT, NULL, NULL],
/**
* Currently rendered php/phtml file path(s).
* @var \string[]
*/
'renderedFullPaths' => [],
/**
* `\ReflectionClass` instances to get additional values
* from controller or form or any other parent instance
* by `__get()` method.
* @var array
*/
'reflectionTypes' => [],
/**
* Currently searched reflection class property name.
* @var string|NULL
*/
'reflectionName' => NULL,
]
|
protected static
string
|
$extension
View scripts files extension with leading dot char.
Default value: |
#
'.phtml'
|
protected static
string
|
$doctype
Output document type (to automatically and optionally send proper
HTTP header |
#
self::DOCTYPE_HTML5
|
protected static
string
|
$layoutsDir
Layout templates directory placed by default
inside |
#
'Layouts'
|
protected static
string
|
$scriptsDir
Controller/action templates directory
placed by default inside |
#
'Scripts'
|
protected static
string
|
$helpersDir
Views helpers directory placed by default
inside |
#
'Helpers'
|
protected static
array
|
$helpersNamespaces
Helpers classes namespaces, where are all configured view helpers placed. For read & write. |
#
[
/*'\MvcCore\Ext\Views\Helpers\'*/
]
|
private static
array
|
$_globalHelpers
Global helpers instances storage. Keys in array are helper method names. These helpers instances are used for all views. |
#
[]
|
private static
string
|
$_viewScriptsFullPathBase
Cached base full path for repeat method calls |
#
NULL
|
private static
string|null
|
$_toolClass
Reference to |
#
NULL
|