Difference between revisions of "JView::get"
From Joomla! Documentation
(Updated to r1448:247ba8d88526) |
m (preparing for archive only) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
Method to get data from a registered model or a property of the view. | Method to get data from a registered model or a property of the view. | ||
− | + | ||
− | + | ||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
public function get ( | public function get ( | ||
Line 36: | Line 34: | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JView::get source code''' on [[jplatform:application/component/view.php#cl-322|BitBucket]] | * {{JVer|11.1}} '''JView::get source code''' on [[jplatform:application/component/view.php#cl-322|BitBucket]] | ||
− | * {{JVer|11.1}} Class [[JView | + | * {{JVer|11.1}} Class [[API17:JView|JView]] |
− | * {{JVer|11.1}} Subpackage [[Subpackage_Application | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] |
− | * [[JView::get|Other versions of JView::get]] | + | * [[API17:JView::get|Other versions of JView::get]] |
− | + | ||
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JView::get | category=JView::get | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Line 54: | Line 50: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 22:57, 24 March 2017
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JView::get[edit]
Description[edit]
Method to get data from a registered model or a property of the view.
public function get (
$property
$default=null
)
Parameter | Type | Default | Description |
---|---|---|---|
$property | string | The name of the method to call on the model or the property to get | |
$default | string | null | The name of the model to reference or the default value [optional] |
- Returns mixed The return value of the method
- Defined on line 330 of libraries/joomla/application/component/view.php
See also[edit]
- JView::get source code on BitBucket
- Class JView
- Subpackage Application
- Other versions of JView::get
User contributed notes[edit]
Code Examples[edit]