Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de l'espace de nommage Joomla\Application

Espaces de nommage

 Controller
 
 Event
 
 Exception
 
 Web
 

Structures de données

class  AbstractApplication
 
class  AbstractWebApplication
 
class  ApplicationEvents
 
interface  ApplicationInterface
 
interface  ConfigurationAwareApplicationInterface
 
interface  SessionAwareWebApplicationInterface
 
class  WebApplication
 
interface  WebApplicationInterface
 

Fonctions

 getInput ()
 
 getSession ()
 
 setSession (SessionInterface $session)
 
 checkToken ($method='post')
 
 getFormToken ($forceNew=false)
 

Variables

trait SessionAwareWebApplicationTrait
 

Description détaillée

Part of the Joomla Framework Application Package

Documentation des fonctions

◆ checkToken()

Joomla\Application\checkToken (   $method = 'post')

Checks for a form token in the request.

Paramètres
string$methodThe request method in which to look for the token key.
Renvoie
boolean
Depuis
2.0.0

Références $method, Joomla\Application\getFormToken(), Joomla\Application\getInput(), et Joomla\Application\getSession().

Référencé par MessageController\action(), LinksController\activate(), UsersController\activate(), TagController\batch(), GroupController\batch(), BannerController\batch(), NewsfeedController\batch(), LinksController\batch(), UserController\batch(), FieldController\batch(), ModuleController\batch(), MailController\cancel(), AssociationController\cancel(), ItemController\cancel(), OverrideController\cancel(), ProfileController\cancel(), FormController\cancel(), UpdateController\captive(), UsersController\changeBlock(), AdminController\checkin(), AssociationsController\clean(), TemplateController\createFile(), OverridesController\delete(), DisplayController\delete(), LevelController\delete(), AdminController\delete(), UpdatesitesController\delete(), MethodController\delete(), TemplateController\delete(), DisplayController\display(), StylesController\duplicate(), ModulesController\duplicate(), LinksController\duplicateUrls(), MenuController\exportXml(), HistoryController\keep(), UserController\login(), DisplayController\login(), DisplayController\logout(), UserController\logout(), PlgSystemDebug\onAjaxDebug(), PlgSampledataMultilang\onAjaxSampledataApplyStep1(), PlgSampledataMultilang\onAjaxSampledataApplyStep2(), PlgSampledataBlog\onAjaxSampledataApplyStep2(), PlgSampledataMultilang\onAjaxSampledataApplyStep3(), PlgSampledataMultilang\onAjaxSampledataApplyStep4(), PlgSampledataMultilang\onAjaxSampledataApplyStep5(), PlgSampledataMultilang\onAjaxSampledataApplyStep6(), PlgSampledataMultilang\onAjaxSampledataApplyStep7(), IndexController\optimise(), TemplateController\overrides(), TemplateController\publish(), ItemsController\publish(), AdminController\publish(), AssociationsController\purge(), DisplayController\purge(), ActionlogsController\purge(), LinksController\purge(), UpdatesitesController\rebuild(), AdminController\reorder(), PlgSystemSchedulerunner\runTestCron(), AdminController\runTransition(), ConfigController\save(), StyleController\save(), TemplatesController\save(), OverrideController\save(), ModuleController\save(), FormController\save(), AdminController\saveorder(), AdminController\saveOrderAjax(), MailController\send(), InstalledController\setDefault(), WorkflowsController\setDefault(), ItemsController\setDefault(), StagesController\setDefault(), ItemController\setType(), ContactController\submit(), InstalledController\switchAdminLanguage(), TemplateController\uploadFile(), et ArticleController\vote().

◆ getFormToken()

Joomla\Application\getFormToken (   $forceNew = false)

◆ getInput()

◆ getSession()

◆ setSession()

Joomla\Application\setSession ( SessionInterface  $session)

Sets the session for the application to use, if required.

Paramètres
SessionInterface$sessionA session object.
Renvoie
$this
Depuis
2.0.0

Références $this.

Documentation des variables

◆ SessionAwareWebApplicationTrait

trait SessionAwareWebApplicationTrait
Valeur initiale :
{
protected $session

Trait which helps implementing Joomla\Application\SessionAwareWebApplicationInterface in a web application class.

Depuis
2.0.0