PluginProbe ʕ •ᴥ•ʔ
JetBackup – Backup, Restore & Migrate / trunk
JetBackup – Backup, Restore & Migrate vtrunk
3.1.22.3 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.8.1 1.4.9 1.5.0 1.5.1 1.5.1.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.0 1.6.10 1.6.11 1.6.12 1.6.13 1.6.15 1.6.5.1 1.6.8.8 1.6.9 1.6.9.1 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7.5 2.0.8.7 2.0.9.11 2.0.9.14 2.0.9.15 2.0.9.6 2.0.9.7 2.0.9.9 3.1.10.7 3.1.11.1 3.1.12.3 3.1.13.4 3.1.14.17 3.1.15.4 3.1.16.1 3.1.17.5 3.1.18.10 3.1.18.8 3.1.18.9 3.1.19.8 3.1.20.3 3.1.21.3 3.1.7.9 3.1.9.2 trunk 1.1.90 1.1.91 1.2.0 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2
backup / src / JetBackup / Destination / Vendors / GoogleDrive / Client / File.php
backup / src / JetBackup / Destination / Vendors / GoogleDrive / Client Last commit date
.htaccess 1 year ago Client.php 1 year ago ClientException.php 1 year ago File.php 1 year ago ListFiles.php 1 year ago index.html 1 year ago web.config 1 year ago
File.php
185 lines
1 <?php
2 /*
3 *
4 * JetBackup @ package
5 * Created By Idan Ben-Ezra
6 *
7 * Copyrights @ JetApps
8 * https://www.jetapps.com
9 *
10 **/
11 namespace JetBackup\Destination\Vendors\GoogleDrive\Client;
12
13 defined( '__JETBACKUP__' ) or die( 'Restricted access' );
14
15 /*
16 [kind] => drive#file
17 [fileExtension] =>
18 [copyRequiresWriterPermission] =>
19 [md5Checksum] => e18a1f2b838b67701aa407714d68ac23
20 [writersCanShare] => 1
21 [viewedByMe] =>
22 [mimeType] => application/json
23 [parents] => Array
24 (
25 [0] => 15gD8cvTKHP76PzixColW52B8c9bsDSLT
26 )
27
28 [iconLink] => https://drive-thirdparty.googleusercontent.com/16/type/application/json
29 [shared] =>
30 [lastModifyingUser] => stdClass Object
31 (
32 [displayName] => Idan Ben-Ezra
33 [kind] => drive#user
34 [me] => 1
35 [permissionId] => 06770184627288947036
36 [emailAddress] => idan@smartix.co.il
37 [photoLink] => https://lh3.googleusercontent.com/a/ACg8ocIHgfURDqMvzCRyKNcpkHBJ0FliQDu1Ky5ebpwbvGd4Lt609rw=s64
38 )
39
40 [owners] => Array
41 (
42 [0] => stdClass Object
43 (
44 [displayName] => Idan Ben-Ezra
45 [kind] => drive#user
46 [me] => 1
47 [permissionId] => 06770184627288947036
48 [emailAddress] => idan@smartix.co.il
49 [photoLink] => https://lh3.googleusercontent.com/a/ACg8ocIHgfURDqMvzCRyKNcpkHBJ0FliQDu1Ky5ebpwbvGd4Lt609rw=s64
50 )
51
52 )
53
54 [headRevisionId] => 0B9RKqTSQa-PwS3pqMnBsZjhMc0pPek01YmdKUjVxQ1ZxNFFVPQ
55 [webViewLink] => https://drive.google.com/file/d/1kx7fUourLWcXoA4uLY7iuZOHDFQ9U653/view?usp=drivesdk
56 [webContentLink] => https://drive.google.com/uc?id=1kx7fUourLWcXoA4uLY7iuZOHDFQ9U653&export=download
57 [size] => 91
58 [viewersCanCopyContent] => 1
59 [permissions] => Array
60 (
61 [0] => stdClass Object
62 (
63 [id] => 06770184627288947036
64 [displayName] => Idan Ben-Ezra
65 [type] => user
66 [kind] => drive#permission
67 [photoLink] => https://lh3.googleusercontent.com/a/ACg8ocIHgfURDqMvzCRyKNcpkHBJ0FliQDu1Ky5ebpwbvGd4Lt609rw=s64
68 [emailAddress] => idan@smartix.co.il
69 [role] => owner
70 [deleted] =>
71 [pendingOwner] =>
72 )
73
74 )
75
76 [hasThumbnail] =>
77 [spaces] => Array
78 (
79 [0] => drive
80 )
81
82 [id] => 1kx7fUourLWcXoA4uLY7iuZOHDFQ9U653
83 [name] => .jetbackup
84 [starred] =>
85 [trashed] =>
86 [explicitlyTrashed] =>
87 [createdTime] => 2024-08-13T23:03:03.761Z
88 [modifiedTime] => 2024-08-13T23:03:03.761Z
89 [modifiedByMeTime] => 2024-08-13T23:03:03.761Z
90 [quotaBytesUsed] => 91
91 [version] => 2
92 [originalFilename] => .jetbackup
93 [ownedByMe] => 1
94 [fullFileExtension] =>
95 [isAppAuthorized] => 1
96 [capabilities] => stdClass Object
97 (
98 [canChangeViewersCanCopyContent] => 1
99 [canEdit] => 1
100 [canCopy] => 1
101 [canComment] => 1
102 [canAddChildren] =>
103 [canDelete] => 1
104 [canDownload] => 1
105 [canListChildren] =>
106 [canRemoveChildren] =>
107 [canRename] => 1
108 [canTrash] => 1
109 [canReadRevisions] => 1
110 [canChangeCopyRequiresWriterPermission] => 1
111 [canMoveItemIntoTeamDrive] => 1
112 [canUntrash] => 1
113 [canModifyContent] => 1
114 [canMoveItemOutOfDrive] => 1
115 [canAddMyDriveParent] =>
116 [canRemoveMyDriveParent] => 1
117 [canMoveItemWithinDrive] => 1
118 [canShare] => 1
119 [canMoveChildrenWithinDrive] =>
120 [canModifyContentRestriction] => 1
121 [canChangeSecurityUpdateEnabled] =>
122 [canAcceptOwnership] =>
123 [canReadLabels] =>
124 [canModifyLabels] =>
125 [canModifyEditorContentRestriction] => 1
126 [canModifyOwnerContentRestriction] => 1
127 [canRemoveContentRestriction] =>
128 )
129
130 [thumbnailVersion] => 0
131 [modifiedByMe] => 1
132 [permissionIds] => Array
133 (
134 [0] => 06770184627288947036
135 )
136
137 [linkShareMetadata] => stdClass Object
138 (
139 [securityUpdateEligible] =>
140 [securityUpdateEnabled] => 1
141 )
142
143 [sha1Checksum] => 9561293e73ccf5c5d5f18089c68594730b50c257
144 [sha256Checksum] => 4324ac6b7837c138c23e3d42346494a7a704bbe1be79e64b64dc02bfcdb76102
145 */
146
147 class File {
148
149 private string $_id='';
150 private string $_name='';
151 private int $_size=0;
152 private string $_mimeType='';
153 private int $_mtime=0;
154 private int $_ctime=0;
155 private string $_md5Checksum='';
156 private string $_sha1Checksum='';
157 private string $_sha256Checksum='';
158
159 public function setId(string $id):void { $this->_id = $id; }
160 public function getId():string { return $this->_id; }
161
162 public function setName(string $name):void { $this->_name = $name; }
163 public function getName():string { return $this->_name; }
164
165 public function setSize(int $size):void { $this->_size = $size; }
166 public function getSize():int { return $this->_size; }
167
168 public function setMimeType(string $type):void { $this->_mimeType = $type; }
169 public function getMimeType():string { return $this->_mimeType; }
170
171 public function setModificationTime(int $time):void { $this->_mtime = $time; }
172 public function getModificationTime():int { return $this->_mtime; }
173
174 public function setCreationTime(int $time):void { $this->_ctime = $time; }
175 public function getCreationTime():int { return $this->_ctime; }
176
177 public function setMD5Checksum(string $checksum):void { $this->_md5Checksum = $checksum; }
178 public function getMD5Checksum():string { return $this->_md5Checksum; }
179
180 public function setSHA1Checksum(string $checksum):void { $this->_sha1Checksum = $checksum; }
181 public function getSHA1Checksum():string { return $this->_sha1Checksum; }
182
183 public function setSHA256Checksum(string $checksum):void { $this->_sha256Checksum = $checksum; }
184 public function getSHA256Checksum():string { return $this->_sha256Checksum; }
185 }