api/webservice/WebserviceStandard/Users/Logout.php
Possibly zero references to use statement for classlike/namespace OA
(\OpenApi\Annotations)
Open
Open
use OpenApi\Annotations as OA;
- Exclude checks
Call to undeclared method \App\Db::createCommand
Open
Open
\App\Db::getInstance('webservice')->createCommand()
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="Logout user out the system",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\SecurityScheme(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="JSON data",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* property="result",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="Content of responses from a given method",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
]);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* name="X-TOKEN",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* tags={"Users"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* security={{"basicAuth" : {}, "ApiKeyAuth" : {}, "token" : {}}},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* required={"status", "result"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* required={"status", "result"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* property="result",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\Parameter(name="X-ENCRYPTED", in="header", @OA\Schema(ref="#/components/schemas/Header-Encrypted"), required=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* schema="UsersLogoutResponseBody",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="JSON data",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* type="object",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* summary="Logout user",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* tags={"Users"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* type="apiKey",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* in="header",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
return true;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* response=200,
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\JsonContent(ref="#/components/schemas/UsersLogoutResponseBody"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\XmlContent(ref="#/components/schemas/UsersLogoutResponseBody"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="Content of responses from a given method",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* type="boolean",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
'logout_time' => date('Y-m-d H:i:s'),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* security={{"basicAuth" : {}, "ApiKeyAuth" : {}, "token" : {}}},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\JsonContent(ref="#/components/schemas/UsersLogoutResponseBody"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* securityScheme="token",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="User details",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* name="X-TOKEN",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* type="apiKey",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\Schema(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\Property(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
$this->updateUser([
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\Response(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\XmlContent(ref="#/components/schemas/UsersLogoutResponseBody"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* in="header",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* title="Users module - Users logout response body",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
])->execute();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
'status' => 'LBL_SIGNED_OFF',
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\Response(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="User details",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\SecurityScheme(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* type="object",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\Property(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
]);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* summary="Logout user",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\Parameter(name="X-ENCRYPTED", in="header", @OA\Schema(ref="#/components/schemas/Header-Encrypted"), required=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* response=200,
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* title="Users module - Users logout response body",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
$this->saveLoginHistory([
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* path="/webservice/WebserviceStandard/Users/Logout",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* securityScheme="token",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* schema="UsersLogoutResponseBody",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
public function put(): bool
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
'id' => $this->controller->headers['x-token'],
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="Webservice api token by user header"
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="Webservice api token by user header"
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\Property(property="status", type="integer", enum={0, 1}, description="A numeric value of 0 or 1 that indicates whether the communication is valid. 1 - success , 0 - error"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* type="boolean",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
->delete($this->controller->app['tables']['session'], [
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="Logout user out the system",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
\App\Db::getInstance('webservice')->createCommand()
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\Property(property="status", type="integer", enum={0, 1}, description="A numeric value of 0 or 1 that indicates whether the communication is valid. 1 - success , 0 - error"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
'custom_params' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public $allowedMethod = ['PUT'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Line exceeds 120 characters; contains 131 characters Open
Open
* @OA\Parameter(name="X-ENCRYPTED", in="header", @OA\Schema(ref="#/components/schemas/Header-Encrypted"), required=true),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
protected function checkPermissionToModule(): void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return bool
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @OA\Put(
- Exclude checks
Line exceeds 120 characters; contains 189 characters Open
Open
* @OA\Property(property="status", type="integer", enum={0, 1}, description="A numeric value of 0 or 1 that indicates whether the communication is valid. 1 - success , 0 - error"),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
use \Api\Core\Traits\LoginHistory;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/** {@inheritdoc} */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Put method.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/** {@inheritdoc} */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @api
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* path="/webservice/WebserviceStandard/Users/Logout",
- Exclude checks