Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe TemplateController
+ Graphe d'héritage de TemplateController:

Fonctions membres publiques

 __construct ($config=array(), MVCFactoryInterface $factory=null, $app=null, $input=null)
 
 cancel ()
 
 close ()
 
 publish ()
 
 getModel ($name='Template', $prefix='Administrator', $config=array())
 
 overrides ()
 
 delete ()
 
 createFile ()
 
 uploadFile ()
 
- Fonctions membres publiques hérités de BaseController
 __construct ($config=array(), MVCFactoryInterface $factory=null, ?CMSApplication $app=null, ?Input $input=null)
 
 addViewPath ($path)
 
 execute ($task)
 
 getModel ($name='', $prefix='', $config=array())
 
 getName ()
 
 getTask ()
 
 getTasks ()
 
 getView ($name='', $type='', $prefix='', $config=array())
 
 redirect ()
 
 registerDefaultTask ($method)
 
 registerTask ($task, $method)
 
 unregisterTask ($task)
 
 setMessage ($text, $type='message')
 
 checkToken ($method='post', $redirect=true)
 
 setRedirect ($url, $msg=null, $type=null)
 
- Fonctions membres publiques hérités de DispatcherAwareInterface
 setDispatcher (DispatcherInterface $dispatcher)
 

Fonctions membres protégées

 allowEdit ()
 
- Fonctions membres protégées hérités de BaseController
 addPath ($type, $path)
 
 checkEditId ($context, $id)
 
 createModel ($name, $prefix='', $config=array())
 
 createView ($name, $prefix='', $type='', $config=array())
 
 holdEditId ($context, $id)
 
 releaseEditId ($context, $id)
 
 setPath ($type, $path)
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de BaseController
static addModelPath ($path, $prefix='')
 
static createFileName ($type, $parts=array())
 
static getInstance ($prefix, $config=array())
 
- Attributs protégés hérités de BaseController
 $basePath
 
 $default_view
 
 $doTask
 
 $message
 
 $messageType
 
 $methods
 
 $name
 
 $model_prefix
 
 $paths
 
 $redirect
 
 $task
 
 $taskMap
 
 $input
 
 $factory
 
 $app
 
- Attributs protégés statiques hérités de BaseController
static $instance
 
static $views
 

Description détaillée

Template style controller class.

Depuis
1.6

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $config = array(),
MVCFactoryInterface  $factory = null,
  $app = null,
  $input = null 
)

Constructor.

Paramètres
array$configAn optional associative array of configuration settings.
MVCFactoryInterface$factoryThe factory.
CMSApplication$appThe Application for the dispatcher
Input$inputInput
Depuis
1.6
Voir également
BaseController

Références $app, $config, $input, et Symfony\Contracts\Service\__construct().

Documentation des fonctions membres

◆ allowEdit()

allowEdit ( )
protected

Method to check if you can add a new record.

Renvoie
boolean
Depuis
3.2

◆ cancel()

cancel ( )

Method for closing the template.

Renvoie
void
Depuis
3.2

Références Route\_().

◆ close()

close ( )

Method for closing a file.

Renvoie
void
Depuis
3.2

Références $id, $url, et Route\_().

◆ createFile()

◆ delete()

delete ( )

Method for deleting a file.

Renvoie
void
Depuis
3.2

Références $id, $model, $url, Text\_(), Route\_(), Joomla\Application\checkToken(), et elseif.

◆ getModel()

getModel (   $name = 'Template',
  $prefix = 'Administrator',
  $config = array() 
)

Method to get a model object, loading it if required.

Paramètres
string$nameThe model name. Optional.
string$prefixThe class prefix. Optional.
array$configConfiguration array for model. Optional (note, the empty array is atypical compared to other models).
Renvoie
The model.
Depuis
3.2

Références $config, $name, et $prefix.

◆ overrides()

◆ publish()

publish ( )

Marked as Checked/Unchecked of override history.

Renvoie
void
Depuis
4.0.0

Références $id, $model, $task, $url, $value, Text\_(), Route\_(), Joomla\Application\checkToken(), elseif, ArrayHelper\getValue(), et Text\plural().

◆ uploadFile()


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