api/webservice/WebservicePremium/Users/Preferences.php
Possibly zero references to use statement for classlike/namespace OA
(\OpenApi\Annotations)
Open
Open
use OpenApi\Annotations as OA;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="Input data",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\JsonContent(ref="#/components/schemas/Users_Put_Preferences_Response"),
- 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(property="result", type="boolean", description="Password change status", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
$data = [];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="Input data",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* mediaType="multipart/form-data",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\Schema(ref="#/components/schemas/Users_Put_Preferences_Request")
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* mediaType="application/x-www-form-urlencoded",
- 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\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
* summary="Changes user’s preferences",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="Changes user’s preferences",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="Changes user’s preferences",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\MediaType(
- 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
* @OA\Response(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* schema="Users_Put_Preferences_Request",
- 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
* mediaType="multipart/form-data",
- 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\Schema(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* title="Users module - Response content of changing user settings",
- 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\JsonContent(ref="#/components/schemas/Users_Put_Preferences_Response"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\XmlContent(ref="#/components/schemas/Users_Put_Preferences_Response"),
- 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
* required={"status", "result"},
- 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
* security={{"basicAuth" : {}, "ApiKeyAuth" : {}, "token" : {}}},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\RequestBody(
- 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
public function put(): bool
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
foreach ($this->controller->request->getContentKeys() as $key) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\MediaType(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\MediaType(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* description="Response",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\XmlContent(ref="#/components/schemas/Users_Put_Preferences_Response"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* schema="Users_Put_Preferences_Response",
- 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
* @OA\RequestBody(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\JsonContent(ref="#/components/schemas/Users_Put_Preferences_Request"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\MediaType(
- 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
$data[$key] = $this->controller->request->get($key);
- 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\Schema(ref="#/components/schemas/Users_Put_Preferences_Request")
- 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
* example={"menuPin" : 1},
- 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 - Response content of changing user settings",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
'preferences' => $data,
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* path="/webservice/WebservicePremium/Users/Preferences",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\JsonContent(ref="#/components/schemas/Users_Put_Preferences_Request"),
- 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(property="result", type="boolean", description="Password change status", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* required=true,
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @OA\Schema(ref="#/components/schemas/Users_Put_Preferences_Request")
- 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
* response=200,
- 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
* schema="Users_Put_Preferences_Response",
- 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
* tags={"Users"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* 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
* @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
* @OA\Response(
- 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
* description="Response",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* schema="Users_Put_Preferences_Request",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* example={"menuPin" : 1},
- 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="object",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* mediaType="application/x-www-form-urlencoded",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* title="Users module - Content of the request to change the user's settings",
- 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="Changes user’s preferences",
- 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\Schema(ref="#/components/schemas/Users_Put_Preferences_Request")
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* title="Users module - Content of the request to change the user's settings",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
return true;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Put method - Changes user’s preferences.
- 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
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @OA\Put(
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* path="/webservice/WebservicePremium/Users/Preferences",
- 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
* @return bool
- 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
{
- 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
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
/**
- 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