Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe MVCFactory
+ Graphe d'héritage de MVCFactory:

Fonctions membres publiques

 __construct ($namespace, CMSApplication $application)
 
 createModel ($name, $prefix='', array $config=array())
 
 createView ($name, $prefix='', $type='', array $config=array())
 
 createTable ($name, $prefix='', array $config=array())
 

Fonctions membres privées

 getClassName ($suffix, $prefix)
 

Attributs privés

 $namespace = null
 
 $application = null
 

Description détaillée

Factory to create MVC objects based on a namespace.

Depuis
3.10.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $namespace,
CMSApplication  $application 
)

The namespace must be like: Joomla

Paramètres
string$namespaceThe namespace.
CMSApplication$applicationThe application
Depuis
3.10.0

Documentation des fonctions membres

◆ createModel()

createModel (   $name,
  $prefix = '',
array  $config = array() 
)

Method to load and return a model object.

Paramètres
string$nameThe name of the model.
string$prefixOptional model prefix.
array$configOptional 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() 
)

Method to load and return a table object.

Paramètres
string$nameThe name of the table.
string$prefixOptional table prefix.
array$configOptional configuration array for the table.
Renvoie
The table object
Depuis
3.10.0
Exceptions

Implémente MVCFactoryInterface.

Références $className, $config, $db, $name, $prefix, Factory\getDbo(), et null.

◆ createView()

createView (   $name,
  $prefix = '',
  $type = '',
array  $config = array() 
)

Method to load and return a view object.

Paramètres
string$nameThe name of the view.
string$prefixOptional view prefix.
string$typeOptional type of view.
array$configOptional 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$suffixThe suffix
string$prefixThe prefix
Renvoie
string|null The class name
Depuis
3.10.0

Références $className, $prefix, $suffix, et null.

Documentation des champs

◆ $application

$application = null
private

◆ $namespace

$namespace = null
private

La documentation de cette classe a été générée à partir du fichier suivant :