Back to Joomla project (class list)

Class ApiMVCFactory - list of methods

Factory to create MVC objects based on a namespace. Note that in an API Application model and table objects will be created from their administrator counterparts.

Extends

Package: Joomla\CMS\MVC\Factory
Copyright: (C) 2019 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE
Located at: Joomla/MVC/Factory/ApiMVCFactory.php
Project: Joomla

Method Summary

public \Joomla\CMS\MVC\Model\ModelInterface
(mixed $name, mixed $prefix = '', array $config = array())

Method to load and return a model object.
Parameters
  • string $name The name of the model.
  • string $prefix Optional model prefix.
  • array $config Optional configuration array for the model.
Returns
  • \Joomla\CMS\MVC\Model\ModelInterface The model object
Since
  • 4.0.0
-
  • \Exception
Show source code of this method: createModel Source Code

public \Joomla\CMS\Table\Table
(mixed $name, mixed $prefix = '', array $config = array())

Method to load and return a table object.
Parameters
  • string $name The name of the table.
  • string $prefix Optional table prefix.
  • array $config Optional configuration array for the table.
Returns
  • \Joomla\CMS\Table\Table The table object
Since
  • 4.0.0
-
  • \Exception
Show source code of this method: createTable Source Code

Tags Summary

Since
4.0.0