Class View
Core view: - static doctype storage - static storage for dir names with view scripts - possible to use for any controller/subcontroller/control/\MvcCore\Ext\Form - view prerender preparing and rendering - direct code evaluation - view helpers management - creating by predefined class names bases - instance storing and calling - views sub scripts relative path solving - Url() proxy method, AssetUrl() proxy method - magic calls: - __call() - helpers handling - __set() - to set anything in controller to get it back in view - __get() - to get anything in view previously completed in controller - no special view language implemented... why to use such stupid things...
- MvcCore\View
-
MvcCore\Ext\Form\Core\View
public
|
|
public
mixed
|
|
public
string
|
|
public
string
|
#
RenderNaturally( )
Render form naturaly by cycles inside php scripts. All form fields will be rendered inside empty < div> elements. |
public
string
|
|
public
string
|
#
RenderCsrf( )
Render hidden input with CSRF tokens. This method is not necessary to call, it's called internaly by $form->View->RenderBegin(); |
public
stdClass
|
|
public
string
|
#
RenderErrors( )
Render form errors. If form is configured to render all errors together at form beginning, this function completes all form errors into div.errors with div.error elements inside containing each single errors message. |
public
string
|
#
RenderContent( )
Render form content. Go through all $form->Fields and call $field->Render(); on every field and put it into an empty < div> element. Render each field in full possible way - naturaly by label configuration with possible errors configured beside or with custom field template. |
public
string
|
|
public static
string
|
|
public static
string
|
#
RenderAttrs( array $atrributes = array() )
Render content of html tag attributes by key/value array. |
AddHelpersClassBases(),
AssetUrl(),
Evaluate(),
GetContent(),
GetController(),
GetViewScriptFullPath(),
Render(),
RenderLayout(),
RenderLayoutAndContent(),
RenderScript(),
SetUp(),
StaticInit(),
Url(),
__set()
|
DOCTYPE_HTML4,
DOCTYPE_HTML5,
DOCTYPE_XHTML,
EXTENSION
|
public
|
$Form
|
#
null
|
public
|
$View
|
#
null
|
$Controller,
$Doctype,
$HelpersClassBases,
$HelpersDir,
$LayoutsDir,
$ScriptsDir,
$originalyDeclaredProperties
|