ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Response.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\WOPI\Handler;
22
26class Response implements \JsonSerializable
27{
28 protected const BASE_FILE_NAME = 'BaseFileName';
29 protected const VERSION = 'Version';
30 protected const OWNER_ID = 'OwnerId';
31 protected const USER_ID = 'UserId';
32 protected const SIZE = 'Size';
33 protected const SUPPORTS_CONTAINERS = 'SupportsContainers';
34 protected const SUPPORTS_DELETE_FILE = 'SupportsDeleteFile';
35 protected const SUPPORTS_UPDATE = 'SupportsUpdate';
36 protected const READ_ONLY = 'ReadOnly';
37 protected const LAST_MODIFIED_TIME = 'LastModifiedTime';
38 protected const USER_CAN_ATTEND = 'UserCanAttend';
39 protected const USER_FRIENDLY_NAME = 'UserFriendlyName';
40 protected const USER_CAN_WRITE = 'UserCanWrite';
41 protected const RESTRICTED_WEB_VIEW_ONLY = 'RestrictedWebViewOnly';
42 protected const USER_CAN_NOT_WRITE_RELATIVE = 'UserCanNotWriteRelative';
43 protected const POST_MESSAGE_ORIGIN = 'PostMessageOrigin';
44 protected const CLOSE_BUTTON_CLOSES_WINDOW = 'CloseButtonClosesWindow';
45 protected const CLOSE_URL = 'CloseUrl';
46 protected const EDIT_MODE_POST_MESSAGE = 'EditModePostMessage';
47 protected const EDIT_NOTIFICATION_POST_MESSAGE = 'EditNotificationPostMessage';
48 protected const CLOSE_POST_MESSAGE = 'ClosePostMessage';
49 protected const SUPPORTS_LOCKS = 'SupportsLocks';
50 protected const SUPPORTS_GET_LOCK = 'SupportsGetLock';
51 protected const USER_CAN_RENAME = 'UserCanRename';
52
53 public function __construct(
54 private array $data
55 ) {
56 }
57
58 public function jsonSerialize(): mixed
59 {
60 return $this->data;
61 }
62}
__construct(private array $data)
Definition: Response.php:53