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

Fonctions membres publiques

 oauthcallback ()
 
- 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 privées

 containsPlugin ($plugins, $pluginName)
 

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())
 
- 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)
 
- 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

Plugin Controller for OAuth2.0 callbacks

This controller handles OAuth2 Callbacks

Depuis
4.0.0

Documentation des fonctions membres

◆ containsPlugin()

containsPlugin (   $plugins,
  $pluginName 
)
private

Check whether a plugin exists in given plugin array.

Paramètres
array$pluginsArray of plugin names
string$pluginNamePlugin name to look up
Renvoie
bool
Depuis
4.0.0

◆ oauthcallback()

oauthcallback ( )

Handles an OAuth Callback request for a specified plugin.

URLs containing [sitename]/administrator/index.php?option=com_media&task=plugin.oauthcallback &plugin=[plugin_name]

will be handled by this endpoint. It will select the plugin specified by plugin_name and pass all the data received from the provider

Renvoie
void
Depuis
4.0.0

Execute actions defined by the plugin Supported actions

  • close : Closes the current window, use this only for windows opened by javascript
  • redirect : Redirect to a URI defined in 'redirect_uri' parameter, if not fallback to control panel
  • media-manager : Redirect to Media Manager
  • control-panel : Redirect to Control Panel

Close a window opened by developer Use this for close New Windows opened for OAuth Process

Références $input, $message, Route\_(), PluginHelper\getPlugin(), PluginHelper\importPlugin(), PluginHelper\isEnabled(), et null.


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