Zend Framework
1.12
|
Public Member Functions | |
__construct (Zend_View_Interface $view=null, array $options=array()) | |
Constructor. | |
__clone () | |
Clone - also make sure the view is cloned. | |
setView (Zend_View_Interface $view) | |
Set the view object. | |
getModule () | |
Get current module name. | |
getModuleDirectory () | |
Get module directory. | |
getInflector () | |
Get inflector. | |
setInflector (Zend_Filter_Inflector $inflector, $reference=false) | |
Set inflector. | |
initView ($path=null, $prefix=null, array $options=array()) | |
Initialize the view object. | |
init () | |
init - initialize view | |
setViewBasePathSpec ($path) | |
Set view basePath specification. | |
getViewBasePathSpec () | |
Retrieve the current view basePath specification string. | |
setViewScriptPathSpec ($path) | |
Set view script path specification. | |
getViewScriptPathSpec () | |
Retrieve the current view script path specification string. | |
setViewScriptPathNoControllerSpec ($path) | |
Set view script path specification (no controller variant) | |
getViewScriptPathNoControllerSpec () | |
Retrieve the current view script path specification string (no controller variant) | |
getViewScript ($action=null, array $vars=array()) | |
Get a view script based on an action and/or other variables. | |
setNeverRender ($flag=true) | |
Set the neverRender flag (i.e., globally dis/enable autorendering) | |
getNeverRender () | |
Retrieve neverRender flag value. | |
setNoRender ($flag=true) | |
Set the noRender flag (i.e., whether or not to autorender) | |
getNoRender () | |
Retrieve noRender flag value. | |
setScriptAction ($name) | |
Set the view script to use. | |
getScriptAction () | |
Retrieve view script name. | |
setResponseSegment ($name) | |
Set the response segment name. | |
getResponseSegment () | |
Retrieve named response segment name. | |
setNoController ($flag=true) | |
Set the noController flag (i.e., whether or not to render into controller subdirectories) | |
getNoController () | |
Retrieve noController flag value. | |
setNeverController ($flag=true) | |
Set the neverController flag (i.e., whether or not to render into controller subdirectories) | |
getNeverController () | |
Retrieve neverController flag value. | |
setViewSuffix ($suffix) | |
Set view script suffix. | |
getViewSuffix () | |
Get view script suffix. | |
setRender ($action=null, $name=null, $noController=null) | |
Set options for rendering a view script. | |
renderScript ($script, $name=null) | |
Render a view script (optionally to a named response segment) | |
render ($action=null, $name=null, $noController=null) | |
Render a view based on path specifications. | |
renderBySpec ($action=null, array $vars=array(), $name=null) | |
Render a script based on specification variables. | |
postDispatch () | |
postDispatch - auto render a view | |
direct ($action=null, $name=null, $noController=null) | |
Use this helper as a method; proxies to setRender() | |
![]() | |
setActionController (Zend_Controller_Action $actionController=null) | |
setActionController() | |
getActionController () | |
Retrieve current action controller. | |
getFrontController () | |
Retrieve front controller instance. | |
init () | |
Hook into action controller initialization. | |
preDispatch () | |
Hook into action controller preDispatch() workflow. | |
postDispatch () | |
Hook into action controller postDispatch() workflow. | |
getRequest () | |
getRequest() - | |
getResponse () | |
getResponse() - | |
getName () | |
getName() | |
Public Attributes | |
$view | |
Protected Member Functions | |
_setInflectorTarget ($target) | |
Set inflector target. | |
_setModuleDir ($dir) | |
Set internal module directory representation. | |
_getModuleDir () | |
Get internal module directory representation. | |
_generateDefaultPrefix () | |
Generate a class prefix for helper and filter classes. | |
_getBasePath () | |
Retrieve base path based on location of current action controller. | |
_setOptions (array $options) | |
Set options. | |
_translateSpec (array $vars=array()) | |
Inflect based on provided vars. | |
_shouldRender () | |
Should the ViewRenderer render a view script? | |
Protected Attributes | |
$_delimiters | |
$_inflector | |
$_inflectorTarget = '' | |
$_moduleDir = '' | |
$_neverController = false | |
$_neverRender = false | |
$_noController = false | |
$_noRender = false | |
$_pathDelimiters | |
$_responseSegment = null | |
$_scriptAction = null | |
$_viewBasePathSpec = ':moduleDir/views' | |
$_viewScriptPathSpec = ':controller/:action.:suffix' | |
$_viewScriptPathNoControllerSpec = ':action.:suffix' | |
$_viewSuffix = 'phtml' | |
![]() | |
$_actionController = null | |
$_actionController | |
$_frontController = null | |
__construct | ( | Zend_View_Interface | $view = null , |
array | $options = array() |
||
) |
Constructor.
Optionally set view object and options.
Zend_View_Interface | $view | |
array | $options |
__clone | ( | ) |
Clone - also make sure the view is cloned.
|
protected |
Generate a class prefix for helper and filter classes.
|
protected |
Retrieve base path based on location of current action controller.
|
protected |
Get internal module directory representation.
|
protected |
Set inflector target.
string | $target |
|
protected |
Set internal module directory representation.
string | $dir |
|
protected |
Set options.
array | $options |
|
protected |
Should the ViewRenderer render a view script?
|
protected |
Inflect based on provided vars.
Allowed variables are:
array | $vars |
direct | ( | $action = null , |
|
$name = null , |
|||
$noController = null |
|||
) |
Use this helper as a method; proxies to setRender()
string | $action | |
string | $name | |
boolean | $noController |
getInflector | ( | ) |
Get inflector.
getModule | ( | ) |
Get current module name.
getModuleDirectory | ( | ) |
Get module directory.
Zend_Controller_Action_Exception |
getNeverController | ( | ) |
Retrieve neverController flag value.
getNeverRender | ( | ) |
Retrieve neverRender flag value.
getNoController | ( | ) |
Retrieve noController flag value.
getNoRender | ( | ) |
Retrieve noRender flag value.
getResponseSegment | ( | ) |
Retrieve named response segment name.
getScriptAction | ( | ) |
Retrieve view script name.
getViewBasePathSpec | ( | ) |
Retrieve the current view basePath specification string.
getViewScript | ( | $action = null , |
|
array | $vars = array() |
||
) |
Get a view script based on an action and/or other variables.
Uses values found in current request if no values passed in $vars.
If $_noController is set, uses $_viewScriptPathNoControllerSpec; otherwise, uses $_viewScriptPathSpec.
string | $action | |
array | $vars |
getViewScriptPathNoControllerSpec | ( | ) |
Retrieve the current view script path specification string (no controller variant)
getViewScriptPathSpec | ( | ) |
Retrieve the current view script path specification string.
getViewSuffix | ( | ) |
Get view script suffix.
init | ( | ) |
init - initialize view
initView | ( | $path = null , |
|
$prefix = null , |
|||
array | $options = array() |
||
) |
Initialize the view object.
$options may contain the following keys:
string | $path | |
string | $prefix | |
array | $options |
Zend_Controller_Action_Exception |
postDispatch | ( | ) |
postDispatch - auto render a view
Only autorenders if:
render | ( | $action = null , |
|
$name = null , |
|||
$noController = null |
|||
) |
Render a view based on path specifications.
Renders a view based on the view script path specifications.
string | $action | |
string | $name | |
boolean | $noController |
renderBySpec | ( | $action = null , |
|
array | $vars = array() , |
||
$name = null |
|||
) |
Render a script based on specification variables.
Pass an action, and one or more specification variables (view script suffix) to determine the view script path, and render that script.
string | $action | |
array | $vars | |
string | $name |
renderScript | ( | $script, | |
$name = null |
|||
) |
Render a view script (optionally to a named response segment)
Sets the noRender flag to true when called.
string | $script | |
string | $name |
setInflector | ( | Zend_Filter_Inflector | $inflector, |
$reference = false |
|||
) |
Set inflector.
Zend_Filter_Inflector | $inflector | |
boolean | $reference | Whether the moduleDir, target, and suffix should be set as references to ViewRenderer properties |
setNeverController | ( | $flag = true | ) |
Set the neverController flag (i.e., whether or not to render into controller subdirectories)
boolean | $flag |
setNeverRender | ( | $flag = true | ) |
Set the neverRender flag (i.e., globally dis/enable autorendering)
boolean | $flag |
setNoController | ( | $flag = true | ) |
Set the noController flag (i.e., whether or not to render into controller subdirectories)
boolean | $flag |
setNoRender | ( | $flag = true | ) |
Set the noRender flag (i.e., whether or not to autorender)
boolean | $flag |
setRender | ( | $action = null , |
|
$name = null , |
|||
$noController = null |
|||
) |
Set options for rendering a view script.
string | $action | View script to render |
string | $name | Response named segment to render to |
boolean | $noController | Whether or not to render within a subdirectory named after the controller |
setResponseSegment | ( | $name | ) |
Set the response segment name.
string | $name |
setScriptAction | ( | $name | ) |
Set the view script to use.
string | $name |
setView | ( | Zend_View_Interface | $view | ) |
Set the view object.
Zend_View_Interface | $view |
setViewBasePathSpec | ( | $path | ) |
Set view basePath specification.
Specification can contain one or more of the following:
string | $path |
setViewScriptPathNoControllerSpec | ( | $path | ) |
Set view script path specification (no controller variant)
Specification can contain one or more of the following:
:controller will likely be ignored in this variant.
string | $path |
setViewScriptPathSpec | ( | $path | ) |
Set view script path specification.
Specification can contain one or more of the following:
string | $path |
setViewSuffix | ( | $suffix | ) |
Set view script suffix.
string | $suffix |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
$view |