MediaWiki REL1_39
SessionProviderInterface.php
Go to the documentation of this file.
1<?php
24namespace MediaWiki\Session;
25
26use Language;
27use Message;
28
37
44 public function describe( Language $lang );
45
53 public function whyNoSession();
54
60 public function safeAgainstCsrf();
61}
Base class for language-specific code.
Definition Language.php:53
The Message class deals with fetching and processing of interface message into a variety of formats.
Definition Message.php:140
This exists to make IDEs happy, so they don't see the internal-but-required-to-be-public methods on S...
describe(Language $lang)
Return an identifier for this session type.
safeAgainstCsrf()
Returns true if this provider is safe against csrf attacks, or false otherwise.
whyNoSession()
Return a Message for why sessions might not be being persisted.
if(!isset( $args[0])) $lang