Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($namespace) | |
createController ($name, $prefix, array $config, CMSApplicationInterface $app, Input $input) | |
createModel ($name, $prefix='', array $config=[]) | |
createView ($name, $prefix='', $type='', array $config=[]) | |
createTable ($name, $prefix='', array $config=[]) | |
Fonctions membres publiques hérités de FormFactoryAwareInterface | |
setFormFactory (FormFactoryInterface $factory) | |
Fonctions membres publiques hérités de SiteRouterAwareInterface | |
setSiteRouter (SiteRouter $router) | |
Fonctions membres protégées | |
getClassName (string $suffix, string $prefix) | |
Fonctions membres privées | |
setFormFactoryOnObject ($object) | |
setDispatcherOnObject ($object) | |
setRouterOnObject ($object) | |
setCacheControllerOnObject ($object) | |
Attributs privés | |
$namespace | |
__construct | ( | $namespace | ) |
The namespace must be like: Joomla
string | $namespace | The namespace |
Références $namespace.
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.
Références $app, $className, $config, $input, $name, $prefix, $this, et null.
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.
Références $className, $config, $model, $name, $prefix, $this, class, Factory\getApplication(), Factory\getContainer(), Joomla\Database\getDatabase(), et null.
createTable | ( | $name, | |
$prefix = '' , |
|||
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 $className, $config, $db, $name, $prefix, class, Factory\getApplication(), Factory\getContainer(), Joomla\Database\getDatabase(), et null.
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 $className, $config, $name, $prefix, $type, $view, Factory\getApplication(), et null.
|
protected |
Returns a standard classname, if the class doesn't exist null is returned.
string | $suffix | The suffix |
string | $prefix | The prefix |
Références $className, $prefix, $suffix, Factory\getApplication(), et null.
|
private |
Sets the internal cache controller on the given object.
object | $object | The object |
Références Joomla\CMS\Cache\getCacheControllerFactory().
|
private |
Sets the internal event dispatcher on the given object.
object | $object | The object |
Références Joomla\CMS\Application\getDispatcher().
|
private |
Sets the internal form factory on the given object.
object | $object | The object |
Références Joomla\CMS\Form\getFormFactory().
|
private |
Sets the internal router on the given object.
object | $object | The object |
Références Joomla\CMS\Router\getSiteRouter().
|
private |