[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
Joomla! Content Management System
Copyright: | (C) 2005 Open Source Matters, Inc. |
License: | GNU General Public License version 2 or later; see LICENSE.txt |
File Size: | 254 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
__construct($config = array() X-Ref |
Constructor param: array $config A named configuration array for object construction. |
get($property, $default = null) X-Ref |
Method to get data from a registered model or a property of the view param: string $property The name of the method to call on the model or the property to get param: string $default The name of the model to reference or the default value [optional] return: mixed The return value of the method |
getModel($name = null) X-Ref |
Method to get the model object param: string $name The name of the model (optional) return: BaseDatabaseModel The model object |
setModel($model, $default = false) X-Ref |
Method to add a model to the view. We support a multiple model single view system by which models are referenced by classname. A caveat to the classname referencing is that any classname prepended by \JModel will be referenced by the name without \JModel, eg. \JModelCategory is just Category. param: BaseDatabaseModel $model The model to add to the view. param: boolean $default Is this the default model? return: BaseDatabaseModel The added model. |
getName() X-Ref |
Method to get the view name The model name by default parsed using the classname, or it can be set by passing a $config['name'] in the class constructor return: string The name of the model |
dispatchEvent(EventInterface $event) X-Ref |
Dispatches the given event on the internal dispatcher, does a fallback to the global one. param: EventInterface $event The event return: void |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |