25 lines
424 B
PHP
25 lines
424 B
PHP
|
<?php
|
||
|
|
||
|
namespace Api;
|
||
|
|
||
|
class Logout extends Request {
|
||
|
|
||
|
public function __construct($user, $externCall = false) {
|
||
|
parent::__construct($user, $externCall);
|
||
|
$this->loginRequired = true;
|
||
|
$this->apiKeyAllowed = false;
|
||
|
}
|
||
|
|
||
|
public function execute($values = array()) {
|
||
|
if(!parent::execute($values)) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
$this->success = true;
|
||
|
$this->user->logout();
|
||
|
return true;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
?>
|