JView/1.6/ja
出典: Joomla! ドキュメンテーション
Description
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __construct | Constructor. |
| public | _addPath | Adds to the search path for templates and resources. |
| public | _createFileName | Create the filename for a resource. |
| public | _setPath | Sets an entire array of search paths for templates or resources. |
| public | addHelperPath | Adds to the stack of helper script paths in LIFO order. |
| public | addTemplatePath | Adds to the stack of view script paths in LIFO order. |
| public | assign | Assigns variables to the view script via differing strategies. |
| public | assignRef | Assign variable for the view (by reference). |
| public | display | Execute and display a template script. |
| public | escape | Escapes a value for output in a view script. |
| public | get | Method to get data from a registered model or a property of the view. |
| public | getLayout | Get the layout. |
| public | getLayoutTemplate | Get the layout template. |
| public | getModel | Method to get the model object. |
| public | getName | Method to get the view name. |
| public | loadHelper | Load a helper file. |
| public | loadTemplate | Load a template file -- first look in the templates folder for an override. |
| public | setEscape | Sets the _escape() callback. |
| public | setLayout | Sets the layout name to use. |
| public | setLayoutExt | Allows a different extension for the layout files to be used. |
| public | setModel | Method to add a model to the view. |
- Defined in libraries/joomla/application/component/view.php
- Extends JObject
Importing
jimport( 'joomla.application.component.view' );
See also
JView source code on JoomlaCode
Subpackage Application
User contributed notes
<CodeExamplesForm />
%DPL-1.7.6-ERROR: Wrong '$0' parameter: 'namespace'! Help: $0= empty string (Main).
