Skip to content

Commit efde859

Browse files
committed
Updated sources
1 parent 10a237f commit efde859

116 files changed

Lines changed: 1971 additions & 1038 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/ApiException.php

Lines changed: 1 addition & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,6 @@
3535
*/
3636
class ApiException extends Exception
3737
{
38-
39-
/**
40-
* The HTTP body of the server response either as Json or string.
41-
*
42-
* @var mixed
43-
*/
44-
protected $responseBody;
45-
46-
/**
47-
* The HTTP header of the server response.
48-
*
49-
* @var string[]|null
50-
*/
51-
protected $responseHeaders;
52-
53-
/**
54-
* The deserialized response object
55-
*
56-
* @var $responseObject;
57-
*/
58-
protected $responseObject;
59-
6038
/**
6139
* Constructor
6240
*
@@ -65,52 +43,8 @@ class ApiException extends Exception
6543
* @param string[]|null $responseHeaders HTTP response header
6644
* @param mixed $responseBody HTTP decoded body of the server response either as \stdClass or string
6745
*/
68-
public function __construct($message = "", $code = 0, $responseHeaders = [], $responseBody = null)
46+
public function __construct($message = "", $code = 0)
6947
{
7048
parent::__construct($message, $code);
71-
$this->responseHeaders = $responseHeaders;
72-
$this->responseBody = $responseBody;
73-
}
74-
75-
/**
76-
* Gets the HTTP response header
77-
*
78-
* @return string[]|null HTTP response header
79-
*/
80-
public function getResponseHeaders()
81-
{
82-
return $this->responseHeaders;
83-
}
84-
85-
/**
86-
* Gets the HTTP body of the server response either as Json or string
87-
*
88-
* @return mixed HTTP body of the server response either as \stdClass or string
89-
*/
90-
public function getResponseBody()
91-
{
92-
return $this->responseBody;
93-
}
94-
95-
/**
96-
* Sets the deseralized response object (during deserialization)
97-
*
98-
* @param mixed $obj Deserialized response object
99-
*
100-
* @return void
101-
*/
102-
public function setResponseObject($obj)
103-
{
104-
$this->responseObject = $obj;
105-
}
106-
107-
/**
108-
* Gets the deseralized response object (during deserialization)
109-
*
110-
* @return mixed the deserialized response object
111-
*/
112-
public function getResponseObject()
113-
{
114-
return $this->responseObject;
11549
}
11650
}

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 = '18.7';
98+
protected $clientVersion = '18.11';
9999

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

292292
/*
293-
* Gets client version, default value is '18.7'
293+
* Gets client version, default value is '18.11'
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: 18.7' . PHP_EOL;
311+
$report .= ' SDK Package Version: 18.11' . PHP_EOL;
312312
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
313313

314314
return $report;

src/GroupDocs/Viewer/Model/Attachment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static function swaggerFormats()
9090
* @var string[]
9191
*/
9292
protected static $attributeMap = [
93-
'name' => 'Name'
93+
'name' => 'name'
9494
];
9595

9696
/*

src/GroupDocs/Viewer/Model/AttachmentCollection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ public static function swaggerFormats()
9696
* @var string[]
9797
*/
9898
protected static $attributeMap = [
99-
'fileName' => 'FileName',
100-
'folder' => 'Folder',
101-
'attachments' => 'Attachments'
99+
'fileName' => 'fileName',
100+
'folder' => 'folder',
101+
'attachments' => 'attachments'
102102
];
103103

104104
/*

src/GroupDocs/Viewer/Model/AttachmentInfo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ public static function swaggerFormats()
9696
* @var string[]
9797
*/
9898
protected static $attributeMap = [
99-
'name' => 'Name',
100-
'extension' => 'Extension',
101-
'fileFormat' => 'FileFormat'
99+
'name' => 'name',
100+
'extension' => 'extension',
101+
'fileFormat' => 'fileFormat'
102102
];
103103

104104
/*

src/GroupDocs/Viewer/Model/CadOptions.php

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
/*
3535
* CadOptions
3636
*
37-
* @description The CAD documents rendering options.
37+
* @description The CAD documents rendering options. Rendering of CAD file formats is not supported at the moment.
3838
*/
3939
class CadOptions implements ArrayAccess
4040
{
@@ -104,13 +104,13 @@ public static function swaggerFormats()
104104
* @var string[]
105105
*/
106106
protected static $attributeMap = [
107-
'scaleFactor' => 'ScaleFactor',
108-
'width' => 'Width',
109-
'height' => 'Height',
110-
'renderLayouts' => 'RenderLayouts',
111-
'layoutName' => 'LayoutName',
112-
'layers' => 'Layers',
113-
'tiles' => 'Tiles'
107+
'scaleFactor' => 'scaleFactor',
108+
'width' => 'width',
109+
'height' => 'height',
110+
'renderLayouts' => 'renderLayouts',
111+
'layoutName' => 'layoutName',
112+
'layers' => 'layers',
113+
'tiles' => 'tiles'
114114
];
115115

116116
/*
@@ -221,18 +221,6 @@ public function listInvalidProperties()
221221
{
222222
$invalidProperties = [];
223223

224-
if ($this->container['scaleFactor'] === null) {
225-
$invalidProperties[] = "'scaleFactor' can't be null";
226-
}
227-
if ($this->container['width'] === null) {
228-
$invalidProperties[] = "'width' can't be null";
229-
}
230-
if ($this->container['height'] === null) {
231-
$invalidProperties[] = "'height' can't be null";
232-
}
233-
if ($this->container['renderLayouts'] === null) {
234-
$invalidProperties[] = "'renderLayouts' can't be null";
235-
}
236224
return $invalidProperties;
237225
}
238226

@@ -245,18 +233,6 @@ public function listInvalidProperties()
245233
public function valid()
246234
{
247235

248-
if ($this->container['scaleFactor'] === null) {
249-
return false;
250-
}
251-
if ($this->container['width'] === null) {
252-
return false;
253-
}
254-
if ($this->container['height'] === null) {
255-
return false;
256-
}
257-
if ($this->container['renderLayouts'] === null) {
258-
return false;
259-
}
260236
return true;
261237
}
262238

src/GroupDocs/Viewer/Model/CellsOptions.php

Lines changed: 10 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,16 @@ public static function swaggerFormats()
110110
* @var string[]
111111
*/
112112
protected static $attributeMap = [
113-
'renderGridLines' => 'RenderGridLines',
114-
'paginateSheets' => 'PaginateSheets',
115-
'countRowsPerPage' => 'CountRowsPerPage',
116-
'ignoreEmptyRows' => 'IgnoreEmptyRows',
117-
'encoding' => 'Encoding',
118-
'internalHyperlinkPrefix' => 'InternalHyperlinkPrefix',
119-
'textOverflowMode' => 'TextOverflowMode',
120-
'renderHiddenRows' => 'RenderHiddenRows',
121-
'renderHiddenColumns' => 'RenderHiddenColumns',
122-
'renderPrintAreaOnly' => 'RenderPrintAreaOnly'
113+
'renderGridLines' => 'renderGridLines',
114+
'paginateSheets' => 'paginateSheets',
115+
'countRowsPerPage' => 'countRowsPerPage',
116+
'ignoreEmptyRows' => 'ignoreEmptyRows',
117+
'encoding' => 'encoding',
118+
'internalHyperlinkPrefix' => 'internalHyperlinkPrefix',
119+
'textOverflowMode' => 'textOverflowMode',
120+
'renderHiddenRows' => 'renderHiddenRows',
121+
'renderHiddenColumns' => 'renderHiddenColumns',
122+
'renderPrintAreaOnly' => 'renderPrintAreaOnly'
123123
];
124124

125125
/*
@@ -239,27 +239,6 @@ public function listInvalidProperties()
239239
{
240240
$invalidProperties = [];
241241

242-
if ($this->container['renderGridLines'] === null) {
243-
$invalidProperties[] = "'renderGridLines' can't be null";
244-
}
245-
if ($this->container['paginateSheets'] === null) {
246-
$invalidProperties[] = "'paginateSheets' can't be null";
247-
}
248-
if ($this->container['countRowsPerPage'] === null) {
249-
$invalidProperties[] = "'countRowsPerPage' can't be null";
250-
}
251-
if ($this->container['ignoreEmptyRows'] === null) {
252-
$invalidProperties[] = "'ignoreEmptyRows' can't be null";
253-
}
254-
if ($this->container['renderHiddenRows'] === null) {
255-
$invalidProperties[] = "'renderHiddenRows' can't be null";
256-
}
257-
if ($this->container['renderHiddenColumns'] === null) {
258-
$invalidProperties[] = "'renderHiddenColumns' can't be null";
259-
}
260-
if ($this->container['renderPrintAreaOnly'] === null) {
261-
$invalidProperties[] = "'renderPrintAreaOnly' can't be null";
262-
}
263242
return $invalidProperties;
264243
}
265244

@@ -272,27 +251,6 @@ public function listInvalidProperties()
272251
public function valid()
273252
{
274253

275-
if ($this->container['renderGridLines'] === null) {
276-
return false;
277-
}
278-
if ($this->container['paginateSheets'] === null) {
279-
return false;
280-
}
281-
if ($this->container['countRowsPerPage'] === null) {
282-
return false;
283-
}
284-
if ($this->container['ignoreEmptyRows'] === null) {
285-
return false;
286-
}
287-
if ($this->container['renderHiddenRows'] === null) {
288-
return false;
289-
}
290-
if ($this->container['renderHiddenColumns'] === null) {
291-
return false;
292-
}
293-
if ($this->container['renderPrintAreaOnly'] === null) {
294-
return false;
295-
}
296254
return true;
297255
}
298256

0 commit comments

Comments
 (0)