LegacyFactory

Implements \Joomla\CMS\MVC\Factory\MVCFactoryInterface

Factory 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

Methods

createModel

Method to load and return a model object.

createModel(string $name, string $prefix = '', array $config = array()) : \Joomla\CMS\MVC\Model\BaseDatabaseModel
since

3.10.0

throws

\Exception

Arguments

$name

stringThe name of the model.

$prefix

stringOptional model prefix.

$config

arrayOptional configuration array for the model.

Response

\Joomla\CMS\MVC\Model\BaseDatabaseModelThe model object

createTable

Method to load and return a table object.

createTable(string $name, string $prefix = 'Table', array $config = array()) : \Joomla\CMS\Table\Table
since

3.10.0

throws

\Exception

Arguments

$name

stringThe name of the table.

$prefix

stringOptional table prefix.

$config

arrayOptional configuration array for the table.

Response

\Joomla\CMS\Table\TableThe 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\HtmlView
since

3.10.0

throws

\Exception

Arguments

$name

stringThe name of the view.

$prefix

stringOptional view prefix.

$type

stringOptional type of view.

$config

arrayOptional configuration array for the view.

Response

\Joomla\CMS\MVC\View\HtmlViewThe view object