Skip to content

Commit 7d60846

Browse files
committed
Updated sources
1 parent 7843eb3 commit 7d60846

14 files changed

+1988
-44
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "This repository contains GroupDocs.Viewer Cloud SDK for PHP source code.",
33
"name": "groupdocscloud/groupdocs-viewer-cloud",
4-
"version": "21.3",
4+
"version": "21.8",
55
"license": "MIT",
66
"type": "library",
77
"keywords": [

src/GroupDocs/Viewer/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class Configuration
9595
* Version of client SDK
9696
*
9797
*/
98-
protected $clientVersion = '21.3';
98+
protected $clientVersion = '21.8';
9999

100100
/*
101101
* Constructor
@@ -290,7 +290,7 @@ public function getClientName()
290290
}
291291

292292
/*
293-
* Gets client version, default value is '21.3'
293+
* Gets client version, default value is '21.8'
294294
*
295295
*/
296296
public function getClientVersion()
@@ -308,7 +308,7 @@ public static function toDebugReport()
308308
$report = 'PHP SDK (GroupDocs\Viewer) Debug Report:' . PHP_EOL;
309309
$report .= ' OS: ' . php_uname() . PHP_EOL;
310310
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
311-
$report .= ' SDK Package Version: 21.3' . PHP_EOL;
311+
$report .= ' SDK Package Version: 21.8' . PHP_EOL;
312312
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
313313

314314
return $report;

src/GroupDocs/Viewer/Model/ArchiveOptions.php

Lines changed: 71 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ class ArchiveOptions implements ArrayAccess
5353
* @var string[]
5454
*/
5555
protected static $swaggerTypes = [
56-
'folder' => 'string'
56+
'folder' => 'string',
57+
'fileName' => 'string',
58+
'itemsPerPage' => 'int'
5759
];
5860

5961
/*
@@ -62,7 +64,9 @@ class ArchiveOptions implements ArrayAccess
6264
* @var string[]
6365
*/
6466
protected static $swaggerFormats = [
65-
'folder' => null
67+
'folder' => null,
68+
'fileName' => null,
69+
'itemsPerPage' => 'int32'
6670
];
6771

6872
/*
@@ -92,7 +96,9 @@ public static function swaggerFormats()
9296
* @var string[]
9397
*/
9498
protected static $attributeMap = [
95-
'folder' => 'Folder'
99+
'folder' => 'Folder',
100+
'fileName' => 'FileName',
101+
'itemsPerPage' => 'ItemsPerPage'
96102
];
97103

98104
/*
@@ -101,7 +107,9 @@ public static function swaggerFormats()
101107
* @var string[]
102108
*/
103109
protected static $setters = [
104-
'folder' => 'setFolder'
110+
'folder' => 'setFolder',
111+
'fileName' => 'setFileName',
112+
'itemsPerPage' => 'setItemsPerPage'
105113
];
106114

107115
/*
@@ -110,7 +118,9 @@ public static function swaggerFormats()
110118
* @var string[]
111119
*/
112120
protected static $getters = [
113-
'folder' => 'getFolder'
121+
'folder' => 'getFolder',
122+
'fileName' => 'getFileName',
123+
'itemsPerPage' => 'getItemsPerPage'
114124
];
115125

116126
/*
@@ -174,6 +184,8 @@ public function getModelName()
174184
public function __construct(array $data = null)
175185
{
176186
$this->container['folder'] = isset($data['folder']) ? $data['folder'] : null;
187+
$this->container['fileName'] = isset($data['fileName']) ? $data['fileName'] : null;
188+
$this->container['itemsPerPage'] = isset($data['itemsPerPage']) ? $data['itemsPerPage'] : null;
177189
}
178190

179191
/*
@@ -185,6 +197,9 @@ public function listInvalidProperties()
185197
{
186198
$invalidProperties = [];
187199

200+
if ($this->container['itemsPerPage'] === null) {
201+
$invalidProperties[] = "'itemsPerPage' can't be null";
202+
}
188203
return $invalidProperties;
189204
}
190205

@@ -197,6 +212,9 @@ public function listInvalidProperties()
197212
public function valid()
198213
{
199214

215+
if ($this->container['itemsPerPage'] === null) {
216+
return false;
217+
}
200218
return true;
201219
}
202220

@@ -224,6 +242,54 @@ public function setFolder($folder)
224242

225243
return $this;
226244
}
245+
246+
/*
247+
* Gets fileName
248+
*
249+
* @return string
250+
*/
251+
public function getFileName()
252+
{
253+
return $this->container['fileName'];
254+
}
255+
256+
/*
257+
* Sets fileName
258+
*
259+
* @param string $fileName The filename to display in the header. By default the name of the source file is displayed.
260+
*
261+
* @return $this
262+
*/
263+
public function setFileName($fileName)
264+
{
265+
$this->container['fileName'] = $fileName;
266+
267+
return $this;
268+
}
269+
270+
/*
271+
* Gets itemsPerPage
272+
*
273+
* @return int
274+
*/
275+
public function getItemsPerPage()
276+
{
277+
return $this->container['itemsPerPage'];
278+
}
279+
280+
/*
281+
* Sets itemsPerPage
282+
*
283+
* @param int $itemsPerPage Number of records per page (for rendering to HTML only)
284+
*
285+
* @return $this
286+
*/
287+
public function setItemsPerPage($itemsPerPage)
288+
{
289+
$this->container['itemsPerPage'] = $itemsPerPage;
290+
291+
return $this;
292+
}
227293
/*
228294
* Returns true if offset exists. False otherwise.
229295
*

src/GroupDocs/Viewer/Model/EmailOptions.php

Lines changed: 65 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ class EmailOptions implements ArrayAccess
5454
*/
5555
protected static $swaggerTypes = [
5656
'pageSize' => 'string',
57-
'fieldLabels' => '\GroupDocs\Viewer\Model\FieldLabel[]'
57+
'fieldLabels' => '\GroupDocs\Viewer\Model\FieldLabel[]',
58+
'dateTimeFormat' => 'string',
59+
'timeZoneOffset' => 'string'
5860
];
5961

6062
/*
@@ -64,7 +66,9 @@ class EmailOptions implements ArrayAccess
6466
*/
6567
protected static $swaggerFormats = [
6668
'pageSize' => null,
67-
'fieldLabels' => null
69+
'fieldLabels' => null,
70+
'dateTimeFormat' => null,
71+
'timeZoneOffset' => null
6872
];
6973

7074
/*
@@ -95,7 +99,9 @@ public static function swaggerFormats()
9599
*/
96100
protected static $attributeMap = [
97101
'pageSize' => 'PageSize',
98-
'fieldLabels' => 'FieldLabels'
102+
'fieldLabels' => 'FieldLabels',
103+
'dateTimeFormat' => 'DateTimeFormat',
104+
'timeZoneOffset' => 'TimeZoneOffset'
99105
];
100106

101107
/*
@@ -105,7 +111,9 @@ public static function swaggerFormats()
105111
*/
106112
protected static $setters = [
107113
'pageSize' => 'setPageSize',
108-
'fieldLabels' => 'setFieldLabels'
114+
'fieldLabels' => 'setFieldLabels',
115+
'dateTimeFormat' => 'setDateTimeFormat',
116+
'timeZoneOffset' => 'setTimeZoneOffset'
109117
];
110118

111119
/*
@@ -115,7 +123,9 @@ public static function swaggerFormats()
115123
*/
116124
protected static $getters = [
117125
'pageSize' => 'getPageSize',
118-
'fieldLabels' => 'getFieldLabels'
126+
'fieldLabels' => 'getFieldLabels',
127+
'dateTimeFormat' => 'getDateTimeFormat',
128+
'timeZoneOffset' => 'getTimeZoneOffset'
119129
];
120130

121131
/*
@@ -207,6 +217,8 @@ public function __construct(array $data = null)
207217
{
208218
$this->container['pageSize'] = isset($data['pageSize']) ? $data['pageSize'] : null;
209219
$this->container['fieldLabels'] = isset($data['fieldLabels']) ? $data['fieldLabels'] : null;
220+
$this->container['dateTimeFormat'] = isset($data['dateTimeFormat']) ? $data['dateTimeFormat'] : null;
221+
$this->container['timeZoneOffset'] = isset($data['timeZoneOffset']) ? $data['timeZoneOffset'] : null;
210222
}
211223

212224
/*
@@ -304,6 +316,54 @@ public function setFieldLabels($fieldLabels)
304316

305317
return $this;
306318
}
319+
320+
/*
321+
* Gets dateTimeFormat
322+
*
323+
* @return string
324+
*/
325+
public function getDateTimeFormat()
326+
{
327+
return $this->container['dateTimeFormat'];
328+
}
329+
330+
/*
331+
* Sets dateTimeFormat
332+
*
333+
* @param string $dateTimeFormat Time Format (can be include TimeZone) for example: 'MM d yyyy HH:mm tt', if not set - current system format is used
334+
*
335+
* @return $this
336+
*/
337+
public function setDateTimeFormat($dateTimeFormat)
338+
{
339+
$this->container['dateTimeFormat'] = $dateTimeFormat;
340+
341+
return $this;
342+
}
343+
344+
/*
345+
* Gets timeZoneOffset
346+
*
347+
* @return string
348+
*/
349+
public function getTimeZoneOffset()
350+
{
351+
return $this->container['timeZoneOffset'];
352+
}
353+
354+
/*
355+
* Sets timeZoneOffset
356+
*
357+
* @param string $timeZoneOffset Message time zone offset. Format should be compatible with .net TimeSpan
358+
*
359+
* @return $this
360+
*/
361+
public function setTimeZoneOffset($timeZoneOffset)
362+
{
363+
$this->container['timeZoneOffset'] = $timeZoneOffset;
364+
365+
return $this;
366+
}
307367
/*
308368
* Returns true if offset exists. False otherwise.
309369
*

0 commit comments

Comments
 (0)