MVCFactoryInterface
Factory to create MVC objects.
since |
3.10.0 |
---|
Methods
createModel
Method to load and return a model object.
createModel(string $name, string $prefix = '', array $config = array()) : \Joomla\CMS\MVC\Model\BaseModel
since |
3.10.0 |
---|---|
throws |
|
Arguments
- $name
string
The name of the model.- $prefix
string
Optional model prefix.- $config
array
Optional configuration array for the model.
Response
\Joomla\CMS\MVC\Model\BaseModel
The model object
createTable
Method to load and return a table object.
createTable(string $name, string $prefix = '', array $config = array()) : \Joomla\CMS\Table\Table
since |
3.10.0 |
---|---|
throws |
|
Arguments
- $name
string
The name of the table.- $prefix
string
Optional table prefix.- $config
array
Optional configuration array for the table.
Response
\Joomla\CMS\Table\Table
The table object
createView
Method to load and return a view object.
createView(string $name, string $prefix = '', string $type = '', array $config = array()) : \Joomla\CMS\MVC\View\View
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
Optional configuration array for the view.
Response
\Joomla\CMS\MVC\View\View
The view object