Skip to content

Commit 9ee8e25

Browse files
author
Vladimir Litvinchik
committed
Updated to GroupDocs.Viewer 18.2.
1 parent a8e2f2a commit 9ee8e25

69 files changed

Lines changed: 98 additions & 96 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/GroupDocs/Viewer/Configuration.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ class Configuration
9797
protected $host = 'https://api.groupdocs.cloud';
9898

9999
/*
100-
* The API version, set to "v1' by default
100+
* The base path, set to '/v1' by default
101101
*
102102
* @var string
103103
*/
104-
protected $apiVersion = 'v1';
104+
protected $basePath = '/v1';
105105

106106
/*
107107
* User agent of the HTTP request, set to 'php sdk' by default
@@ -139,7 +139,7 @@ class Configuration
139139

140140
/*
141141
* Constructor
142-
*
142+
*
143143
*/
144144
public function __construct()
145145
{
@@ -367,26 +367,26 @@ public function getHost()
367367
}
368368

369369
/*
370-
* Sets the API version
370+
* Sets the BasePath
371371
*
372-
* @param string $apiVersion
372+
* @param string $basePath
373373
*
374374
* @return $this
375375
*/
376-
public function setApiVersion($apiVersion)
376+
public function setBasePath($basePath)
377377
{
378-
$this->apiVersion = $apiVersion;
378+
$this->basePath = $basePath;
379379
return $this;
380380
}
381381

382382
/*
383-
* Gets the apiVersion
383+
* Gets the basePath
384384
*
385-
* @return string ApiVersion
385+
* @return string BasePath
386386
*/
387-
public function getApiVersion()
387+
public function getBasePath()
388388
{
389-
return $this->apiVersion;
389+
return $this->basePath;
390390
}
391391

392392
/*
@@ -522,7 +522,7 @@ public static function toDebugReport()
522522
$report = 'PHP SDK (GroupDocs\Viewer) Debug Report:' . PHP_EOL;
523523
$report .= ' OS: ' . php_uname() . PHP_EOL;
524524
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
525-
$report .= ' OpenAPI Spec Version: 17.12' . PHP_EOL;
525+
$report .= ' SDK Package Version: 18.2' . PHP_EOL;
526526
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
527527

528528
return $report;

src/GroupDocs/Viewer/HeaderSelector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
*/
3636
class HeaderSelector
3737
{
38-
3938
/*
4039
* Selects headers for request
4140
* @param string[] $accept type of header

src/GroupDocs/Viewer/Model/CadOptions.php

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class CadOptions implements ArrayAccess
6060
'width' => 'int',
6161
'height' => 'int',
6262
'renderLayouts' => 'bool',
63-
'layoutName' => 'string'
63+
'layoutName' => 'string',
64+
'layers' => 'string[]'
6465
];
6566

6667
/*
@@ -73,7 +74,8 @@ class CadOptions implements ArrayAccess
7374
'width' => 'int32',
7475
'height' => 'int32',
7576
'renderLayouts' => null,
76-
'layoutName' => null
77+
'layoutName' => null,
78+
'layers' => null
7779
];
7880

7981
/*
@@ -107,7 +109,8 @@ public static function swaggerFormats()
107109
'width' => 'Width',
108110
'height' => 'Height',
109111
'renderLayouts' => 'RenderLayouts',
110-
'layoutName' => 'LayoutName'
112+
'layoutName' => 'LayoutName',
113+
'layers' => 'Layers'
111114
];
112115

113116
/*
@@ -120,7 +123,8 @@ public static function swaggerFormats()
120123
'width' => 'setWidth',
121124
'height' => 'setHeight',
122125
'renderLayouts' => 'setRenderLayouts',
123-
'layoutName' => 'setLayoutName'
126+
'layoutName' => 'setLayoutName',
127+
'layers' => 'setLayers'
124128
];
125129

126130
/*
@@ -133,7 +137,8 @@ public static function swaggerFormats()
133137
'width' => 'getWidth',
134138
'height' => 'getHeight',
135139
'renderLayouts' => 'getRenderLayouts',
136-
'layoutName' => 'getLayoutName'
140+
'layoutName' => 'getLayoutName',
141+
'layers' => 'getLayers'
137142
];
138143

139144
/*
@@ -201,6 +206,7 @@ public function __construct(array $data = null)
201206
$this->container['height'] = isset($data['height']) ? $data['height'] : null;
202207
$this->container['renderLayouts'] = isset($data['renderLayouts']) ? $data['renderLayouts'] : null;
203208
$this->container['layoutName'] = isset($data['layoutName']) ? $data['layoutName'] : null;
209+
$this->container['layers'] = isset($data['layers']) ? $data['layers'] : null;
204210
}
205211

206212
/*
@@ -370,6 +376,30 @@ public function setLayoutName($layoutName)
370376

371377
return $this;
372378
}
379+
380+
/*
381+
* Gets layers
382+
*
383+
* @return string[]
384+
*/
385+
public function getLayers()
386+
{
387+
return $this->container['layers'];
388+
}
389+
390+
/*
391+
* Sets layers
392+
*
393+
* @param string[] $layers The list of document layers to render. By default all layers will be rendered. Layer names are case sensitive.
394+
*
395+
* @return $this
396+
*/
397+
public function setLayers($layers)
398+
{
399+
$this->container['layers'] = $layers;
400+
401+
return $this;
402+
}
373403
/*
374404
* Returns true if offset exists. False otherwise.
375405
*

src/GroupDocs/Viewer/Model/DocumentInfo.php

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ class DocumentInfo implements ArrayAccess
6262
'size' => 'int',
6363
'dateModified' => '\DateTime',
6464
'pages' => '\GroupDocs\Viewer\Model\PageInfo[]',
65-
'attachments' => '\GroupDocs\Viewer\Model\AttachmentInfo[]'
65+
'attachments' => '\GroupDocs\Viewer\Model\AttachmentInfo[]',
66+
'layers' => 'string[]'
6667
];
6768

6869
/*
@@ -77,7 +78,8 @@ class DocumentInfo implements ArrayAccess
7778
'size' => 'int64',
7879
'dateModified' => 'date-time',
7980
'pages' => null,
80-
'attachments' => null
81+
'attachments' => null,
82+
'layers' => null
8183
];
8284

8385
/*
@@ -113,7 +115,8 @@ public static function swaggerFormats()
113115
'size' => 'Size',
114116
'dateModified' => 'DateModified',
115117
'pages' => 'Pages',
116-
'attachments' => 'Attachments'
118+
'attachments' => 'Attachments',
119+
'layers' => 'Layers'
117120
];
118121

119122
/*
@@ -128,7 +131,8 @@ public static function swaggerFormats()
128131
'size' => 'setSize',
129132
'dateModified' => 'setDateModified',
130133
'pages' => 'setPages',
131-
'attachments' => 'setAttachments'
134+
'attachments' => 'setAttachments',
135+
'layers' => 'setLayers'
132136
];
133137

134138
/*
@@ -143,7 +147,8 @@ public static function swaggerFormats()
143147
'size' => 'getSize',
144148
'dateModified' => 'getDateModified',
145149
'pages' => 'getPages',
146-
'attachments' => 'getAttachments'
150+
'attachments' => 'getAttachments',
151+
'layers' => 'getLayers'
147152
];
148153

149154
/*
@@ -213,6 +218,7 @@ public function __construct(array $data = null)
213218
$this->container['dateModified'] = isset($data['dateModified']) ? $data['dateModified'] : null;
214219
$this->container['pages'] = isset($data['pages']) ? $data['pages'] : null;
215220
$this->container['attachments'] = isset($data['attachments']) ? $data['attachments'] : null;
221+
$this->container['layers'] = isset($data['layers']) ? $data['layers'] : null;
216222
}
217223

218224
/*
@@ -418,6 +424,30 @@ public function setAttachments($attachments)
418424

419425
return $this;
420426
}
427+
428+
/*
429+
* Gets layers
430+
*
431+
* @return string[]
432+
*/
433+
public function getLayers()
434+
{
435+
return $this->container['layers'];
436+
}
437+
438+
/*
439+
* Sets layers
440+
*
441+
* @param string[] $layers The list of layers contained in a CAD document.
442+
*
443+
* @return $this
444+
*/
445+
public function setLayers($layers)
446+
{
447+
$this->container['layers'] = $layers;
448+
449+
return $this;
450+
}
421451
/*
422452
* Returns true if offset exists. False otherwise.
423453
*

src/GroupDocs/Viewer/Model/Requests/DeleteFontsCacheRequest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
/*
43
* --------------------------------------------------------------------------------------------------------------------
54
* <copyright company="Aspose Pty Ltd" file="DeleteFontsCacheRequest.php">

src/GroupDocs/Viewer/Model/Requests/GetFontsRequest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
/*
43
* --------------------------------------------------------------------------------------------------------------------
54
* <copyright company="Aspose Pty Ltd" file="GetFontsRequest.php">

src/GroupDocs/Viewer/Model/Requests/GetSupportedFileFormatsRequest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
/*
43
* --------------------------------------------------------------------------------------------------------------------
54
* <copyright company="Aspose Pty Ltd" file="GetSupportedFileFormatsRequest.php">

src/GroupDocs/Viewer/Model/Requests/HtmlCreateAttachmentPagesCacheRequest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
/*
43
* --------------------------------------------------------------------------------------------------------------------
54
* <copyright company="Aspose Pty Ltd" file="HtmlCreateAttachmentPagesCacheRequest.php">

src/GroupDocs/Viewer/Model/Requests/HtmlCreatePagesCacheFromContentRequest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
/*
43
* --------------------------------------------------------------------------------------------------------------------
54
* <copyright company="Aspose Pty Ltd" file="HtmlCreatePagesCacheFromContentRequest.php">

src/GroupDocs/Viewer/Model/Requests/HtmlCreatePagesCacheFromUrlRequest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
/*
43
* --------------------------------------------------------------------------------------------------------------------
54
* <copyright company="Aspose Pty Ltd" file="HtmlCreatePagesCacheFromUrlRequest.php">

0 commit comments

Comments
 (0)