Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
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 |
Part of the Joomla Framework Application Package
Joomla\Application\checkToken | ( | $method = 'post' | ) |
Checks for a form token in the request.
string | $method | The request method in which to look for the token key. |
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().
Joomla\Application\getFormToken | ( | $forceNew = false | ) |
Method to determine a hash for anti-spoofing variable names
boolean | $forceNew | If true, force a new token to be created |
Références Joomla\Application\getSession().
Référencé par Session\checkToken(), Joomla\Application\checkToken(), PlgSystemDebug\onAfterRespond(), PlgButtonMenu\onDisplay(), PlgButtonContact\onDisplay(), PlgButtonModule\onDisplay(), PlgButtonArticle\onDisplay(), PlgButtonFields\onDisplay(), PlgQuickiconPrivacyCheck\onGetIcons(), PlgQuickiconExtensionupdate\onGetIcons(), et PlgQuickiconOverrideCheck\onGetIcons().
|
abstract |
Method to get the application input object.
Gets the input instance used by the last execution of the command or application.
Références Symfony\Component\Console\Tester\$input.
Référencé par CliApplication\__get(), ConsoleApplication\__get(), FormField\__get(), Joomla\Application\checkToken(), ContenttypeField\getInput(), FieldcontextsField\getInput(), WorkflowcontextsField\getInput(), PrivacyField\getInput(), TermsField\getInput(), SectionField\getInput(), JoomlatokenField\getInput(), MenuOrderingField\getInput(), ModulepositionField\getInput(), ConsentBoxField\getInput(), et FormField\renderField().
Joomla\Application\getSession | ( | ) |
Method to get the application session object.
Référencé par CMSApplication\checkSession(), Joomla\Application\checkToken(), SessionCollector\collect(), Joomla\Application\getFormToken(), CMSApplication\getMessageQueue(), CMSApplication\getUserState(), InstallationApplication\initialiseApp(), PlgUserJoomla\onUserLogout(), CMSApplication\redirect(), ServiceProviderInterface\register(), et CMSApplication\setUserState().
Joomla\Application\setSession | ( | SessionInterface | $session | ) |
Sets the session for the application to use, if required.
SessionInterface | $session | A session object. |
Références $this.
trait SessionAwareWebApplicationTrait |
Trait which helps implementing Joomla\Application\SessionAwareWebApplicationInterface
in a web application class.