LegacyFactory
Implements MVCFactoryInterfaceFactory to create MVC objects in legacy mode.
Uses the static getInstance function on the classes itself. Behavior of the old none namespaced extension set up.
since |
3.10.0 |
---|---|
package |
Joomla CMS |
Methods
createController
Method to load and return a controller object.
createController( name, prefix, mixed||string|int config, \Joomla\CMS\Application\CMSApplicationInterface app, \Joomla\Input\Input input) : \Joomla\CMS\MVC\Controller\ControllerInterface
since |
4.0.0 |
---|---|
throws |
|
Arguments
- name
string
The name of the controller- prefix
string
The controller prefix- config
array<string|int, mixed>
The configuration array for the controller- app
CMSApplicationInterface
The app- input
Input
The input
Response
createModel
Method to load and return a model object.
createModel( name, prefix = '', mixed||string|int config = []) : \Joomla\CMS\MVC\Model\ModelInterface
since |
3.10.0 |
---|---|
throws |
|
Arguments
- name
string
The name of the model.- prefix
string
Optional model prefix.- config
array<string|int, mixed>
Optional configuration array for the model.
Response
ModelInterface
The model object
createTable
Method to load and return a table object.
createTable( name, prefix = 'Table', mixed||string|int config = []) : \Joomla\CMS\Table\Table
since |
3.10.0 |
---|---|
throws |
|
Arguments
- name
string
The name of the table.- prefix
string
Optional table prefix.- config
array<string|int, mixed>
Optional configuration array for the table.
Response
Table
The table object
createView
Method to load and return a view object.
createView( name, prefix = '', type = '', mixed||string|int config = []) : \Joomla\CMS\MVC\View\ViewInterface
since |
3.10.0 |
---|---|
throws |
|
Arguments
- name
string
The name of the view.- prefix
string
Optional view prefix.- type
string
Optional type of view.- config
array<string|int, mixed>
Optional configuration array for the view.
Response
ViewInterface
The view object