Factory to create MVC objects based on a namespace.
- Depuis
- 3.10.0
◆ __construct()
The namespace must be like: Joomla
- Paramètres
-
string | $namespace | The namespace. |
CMSApplication | $application | The application |
- Depuis
- 3.10.0
◆ createModel()
createModel |
( |
|
$name, |
|
|
|
$prefix = '' , |
|
|
array |
$config = array() |
|
) |
| |
Method to load and return a model object.
- Paramètres
-
string | $name | The name of the model. |
string | $prefix | Optional model prefix. |
array | $config | Optional configuration array for the model. |
- Renvoie
- The model object
- Depuis
- 3.10.0
- Exceptions
-
Implémente MVCFactoryInterface.
Références $className, $config, $name, $prefix, et null.
◆ createTable()
createTable |
( |
|
$name, |
|
|
|
$prefix = '' , |
|
|
array |
$config = array() |
|
) |
| |
◆ createView()
createView |
( |
|
$name, |
|
|
|
$prefix = '' , |
|
|
|
$type = '' , |
|
|
array |
$config = array() |
|
) |
| |
Method to load and return a view object.
- Paramètres
-
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. |
- Renvoie
- The view object
- Depuis
- 3.10.0
- Exceptions
-
Implémente MVCFactoryInterface.
Références $className, $config, $name, $prefix, $type, et null.
◆ getClassName()
getClassName |
( |
|
$suffix, |
|
|
|
$prefix |
|
) |
| |
|
private |
Returns a standard classname, if the class doesn't exist null is returned.
- Paramètres
-
string | $suffix | The suffix |
string | $prefix | The prefix |
- Renvoie
- string|null The class name
- Depuis
- 3.10.0
Références $className, $prefix, $suffix, et null.
◆ $application
◆ $namespace
La documentation de cette classe a été générée à partir du fichier suivant :