ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
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 SUPPORTS_EXTENDED_LOCK_LENGTH = 'SupportsExtendedLockLength';
52 protected const USER_CAN_RENAME = 'UserCanRename';
53
54 public function __construct(
55 private array $data
56 ) {
57 }
58
59 public function jsonSerialize(): mixed
60 {
61 return $this->data;
62 }
63}
__construct(private array $data)
Definition: Response.php:54
$data
Definition: storeScorm.php:45