[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
Joomla! Content Management System
Copyright: | (C) 2017 Open Source Matters, Inc. |
License: | GNU General Public License version 2 or later; see LICENSE |
File Size: | 362 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 2 times |
Includes or requires: | 0 files |
MVCFactory:: (10 methods):
__construct()
createController()
createModel()
createView()
createTable()
getClassName()
setFormFactoryOnObject()
setDispatcherOnObject()
setRouterOnObject()
setCacheControllerOnObject()
Class: MVCFactory - X-Ref
Factory to create MVC objects based on a namespace.__construct($namespace) X-Ref |
The namespace must be like: Joomla\Component\Content param: string $namespace The namespace |
createController($name, $prefix, array $config, CMSApplicationInterface $app, Input $input) X-Ref |
Method to load and return a controller object. param: string $name The name of the controller param: string $prefix The controller prefix param: array $config The configuration array for the controller param: CMSApplicationInterface $app The app param: Input $input The input return: \Joomla\CMS\MVC\Controller\ControllerInterface |
createModel($name, $prefix = '', array $config = []) X-Ref |
Method to load and return a model object. param: string $name The name of the model. param: string $prefix Optional model prefix. param: array $config Optional configuration array for the model. return: ModelInterface The model object |
createView($name, $prefix = '', $type = '', array $config = []) X-Ref |
Method to load and return a view object. param: string $name The name of the view. param: string $prefix Optional view prefix. param: string $type Optional type of view. param: array $config Optional configuration array for the view. return: \Joomla\CMS\MVC\View\ViewInterface The view object |
createTable($name, $prefix = '', array $config = []) X-Ref |
Method to load and return a table object. param: string $name The name of the table. param: string $prefix Optional table prefix. param: array $config Optional configuration array for the table. return: \Joomla\CMS\Table\Table The table object |
getClassName(string $suffix, string $prefix) X-Ref |
Returns a standard classname, if the class doesn't exist null is returned. param: string $suffix The suffix param: string $prefix The prefix return: string|null The class name |
setFormFactoryOnObject($object) X-Ref |
Sets the internal form factory on the given object. param: object $object The object return: void |
setDispatcherOnObject($object) X-Ref |
Sets the internal event dispatcher on the given object. param: object $object The object return: void |
setRouterOnObject($object) X-Ref |
Sets the internal router on the given object. param: object $object The object return: void |
setCacheControllerOnObject($object) X-Ref |
Sets the internal cache controller on the given object. param: object $object The object return: void |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |