Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
createController ($name, $prefix, array $config, CMSApplicationInterface $app, Input $input) | |
createModel ($name, $prefix='', array $config=[]) | |
createView ($name, $prefix='', $type='', array $config=[]) | |
createTable ($name, $prefix='Table', array $config=[]) | |
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.
createController | ( | $name, | |
$prefix, | |||
array | $config, | ||
CMSApplicationInterface | $app, | ||
Input | $input | ||
) |
Method to load and return a controller object.
string | $name | The name of the controller |
string | $prefix | The controller prefix |
array | $config | The configuration array for the controller |
CMSApplicationInterface | $app | The app |
Input | $input | The input |
Implémente MVCFactoryInterface.
createModel | ( | $name, | |
$prefix = '' , |
|||
array | $config = [] |
||
) |
Method to load and return a model object.
string | $name | The name of the model. |
string | $prefix | Optional model prefix. |
array | $config | Optional configuration array for the model. |
Implémente MVCFactoryInterface.
createTable | ( | $name, | |
$prefix = 'Table' , |
|||
array | $config = [] |
||
) |
Method to load and return a table object.
string | $name | The name of the table. |
string | $prefix | Optional table prefix. |
array | $config | Optional configuration array for the table. |
Implémente MVCFactoryInterface.
Références $config, $name, $prefix, et Table\getInstance().
createView | ( | $name, | |
$prefix = '' , |
|||
$type = '' , |
|||
array | $config = [] |
||
) |
Method to load and return a view object.
string | $name | The name of the view. |
string | $prefix | Optional view prefix. |
string | $type | Optional type of view. |
array | $config | Optional configuration array for the view. |
Implémente MVCFactoryInterface.
Références $config, $name, $path, $prefix, $type, BaseController\createFileName(), Path\find(), null, JLoader\register(), et Text\sprintf().