*/
class ApiLogout extends ApiBase {
- public function __construct( $main, $action ) {
- parent::__construct( $main, $action );
- }
-
public function execute() {
$user = $this->getUser();
$oldName = $user->getName();
}
public function getDescription() {
- return 'Log out and clear session data';
+ return 'Log out and clear session data.';
}
public function getExamples() {