Skip to content

Commit 282ffd1

Browse files
committed
20220726 update : add 4 kinds of save option and update apis.
1 parent a0f77d4 commit 282ffd1

File tree

7 files changed

+1628
-18
lines changed

7 files changed

+1628
-18
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Packagist Version](https://img.shields.io/packagist/v/aspose/cells-sdk-php) ![Packagist PHP Version Support](https://img.shields.io/packagist/php-v/aspose/cells-sdk-php) ![Packagist Downloads](https://img.shields.io/packagist/dt/aspose/cells-sdk-php) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-java)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-php/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-php/22.6.1)
1+
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Packagist Version](https://img.shields.io/packagist/v/aspose/cells-sdk-php) ![Packagist PHP Version Support](https://img.shields.io/packagist/php-v/aspose/cells-sdk-php) ![Packagist Downloads](https://img.shields.io/packagist/dt/aspose/cells-sdk-php) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-java)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-php/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-php/22.7)
22

33
# PHP SDK for Spreadsheet Processing in Cloud
44

@@ -24,15 +24,11 @@ This Cloud SDK enhances your PHP-based Cloud apps to [process & manipulate Micro
2424
- Fetch the required shape from worksheet.
2525
- Leverage the power of [Pivot Tables](https://docs.aspose.cloud/cells/working-with-pivot-tables/) & Ranges.
2626

27-
## Feature & Enhancements in Version 22.6
27+
## Feature & Enhancements in Version 22.7
2828

29-
- Improve save as api.
30-
- Improve clear objects api.
31-
- upgrade guzzlehttp/guzzle to 7.4.0.
29+
- Add 4 kinds of Save Option.
30+
- Add the checkExcelRestriction parameter for multiple APIs.
3231

33-
## Feature & Enhancements in Version 22.6.1
34-
35-
- fix bugs about upgrading guzzlehttp/guzzle to 7.4.0.
3632

3733
## Read Other Formats
3834

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Api/LightCellsApi.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ public function getConfig()
119119
* @throws \InvalidArgumentException
120120
* @return \Aspose\Cells\Cloud\Model\FilesResult
121121
*/
122-
public function deleteMetadata($file, $type = 'all' ,$c)
122+
public function deleteMetadata($file, $type = 'all' ,$check_excel_restriction = 'true')
123123
{
124124
$this->checkAccessToken();
125-
list($response) = $this->deleteMetadataWithHttpInfo($file, $type);
125+
list($response) = $this->deleteMetadataWithHttpInfo($file, $type,$check_excel_restriction );
126126
return $response;
127127
}
128128

@@ -2235,7 +2235,7 @@ protected function postImportRequest($file,$importoption)
22352235
public function postMetadata($file, $document_properties, $check_excel_restriction = 'true')
22362236
{
22372237
$this->checkAccessToken();
2238-
list($response) = $this->postMetadataWithHttpInfo($file, $document_propertie, $check_excel_restriction );
2238+
list($response) = $this->postMetadataWithHttpInfo($file, $document_properties, $check_excel_restriction );
22392239
return $response;
22402240
}
22412241

lib/Model/DocxSaveOptions.php

Lines changed: 286 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,286 @@
1+
<?php
2+
/**
3+
* DocxSaveOptions
4+
*
5+
* PHP version 5
6+
*
7+
* @category Class
8+
* @package Aspose\Cells\Cloud
9+
* @author Swagger Codegen team
10+
* @link https://github.com/swagger-api/swagger-codegen
11+
*/
12+
13+
/*
14+
* <summary>
15+
* Copyright (c) 2022 Aspose.Cells Cloud
16+
* Permission is hereby granted, free of charge, to any person obtaining a copy
17+
* of this software and associated documentation files (the "Software"), to deal
18+
* in the Software without restriction, including without limitation the rights
19+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20+
* copies of the Software, and to permit persons to whom the Software is
21+
* furnished to do so, subject to the following conditions:
22+
*
23+
* The above copyright notice and this permission notice shall be included in all
24+
* copies or substantial portions of the Software.
25+
*
26+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32+
* SOFTWARE.
33+
* </summary>
34+
*/
35+
36+
/**
37+
* NOTE: This class is auto generated by the swagger code generator program.
38+
* https://github.com/swagger-api/swagger-codegen
39+
* Do not edit the class manually.
40+
*/
41+
42+
namespace Aspose\Cells\Cloud\Model;
43+
use \Aspose\Cells\Cloud\ObjectSerializer;
44+
45+
/**
46+
* DocxSaveOptions Class Doc Comment
47+
*
48+
* @category Class
49+
* @package Aspose\Cells\Cloud
50+
* @author Swagger Codegen team
51+
* @link https://github.com/swagger-api/swagger-codegen
52+
*/
53+
class DocxSaveOptions extends SaveOptions
54+
{
55+
const DISCRIMINATOR = null;
56+
57+
/**
58+
* The original name of the model.
59+
*
60+
* @var string
61+
*/
62+
protected static $swaggerModelName = 'DocxSaveOptions';
63+
64+
/**
65+
* Array of property to type mappings. Used for (de)serialization
66+
*
67+
* @var string[]
68+
*/
69+
protected static $swaggerTypes = [
70+
71+
];
72+
73+
/**
74+
* Array of property to format mappings. Used for (de)serialization
75+
*
76+
* @var string[]
77+
*/
78+
protected static $swaggerFormats = [
79+
80+
];
81+
82+
/**
83+
* Array of property to type mappings. Used for (de)serialization
84+
*
85+
* @return array
86+
*/
87+
public static function swaggerTypes()
88+
{
89+
return self::$swaggerTypes + parent::swaggerTypes();
90+
}
91+
92+
/**
93+
* Array of property to format mappings. Used for (de)serialization
94+
*
95+
* @return array
96+
*/
97+
public static function swaggerFormats()
98+
{
99+
return self::$swaggerFormats + parent::swaggerFormats();
100+
}
101+
102+
/**
103+
* Array of attributes where the key is the local name,
104+
* and the value is the original name
105+
*
106+
* @var string[]
107+
*/
108+
protected static $attributeMap = [
109+
110+
];
111+
112+
/**
113+
* Array of attributes to setter functions (for deserialization of responses)
114+
*
115+
* @var string[]
116+
*/
117+
protected static $setters = [
118+
119+
];
120+
121+
/**
122+
* Array of attributes to getter functions (for serialization of requests)
123+
*
124+
* @var string[]
125+
*/
126+
protected static $getters = [
127+
128+
];
129+
130+
/**
131+
* Array of attributes where the key is the local name,
132+
* and the value is the original name
133+
*
134+
* @return array
135+
*/
136+
public static function attributeMap()
137+
{
138+
return parent::attributeMap() + self::$attributeMap;
139+
}
140+
141+
/**
142+
* Array of attributes to setter functions (for deserialization of responses)
143+
*
144+
* @return array
145+
*/
146+
public static function setters()
147+
{
148+
return parent::setters() + self::$setters;
149+
}
150+
151+
/**
152+
* Array of attributes to getter functions (for serialization of requests)
153+
*
154+
* @return array
155+
*/
156+
public static function getters()
157+
{
158+
return parent::getters() + self::$getters;
159+
}
160+
161+
/**
162+
* The original name of the model.
163+
*
164+
* @return string
165+
*/
166+
public function getModelName()
167+
{
168+
return self::$swaggerModelName;
169+
}
170+
171+
172+
173+
174+
175+
176+
/**
177+
* Constructor
178+
*
179+
* @param mixed[] $data Associated array of property values
180+
* initializing the model
181+
*/
182+
public function __construct(array $data = null)
183+
{
184+
parent::__construct($data);
185+
186+
}
187+
188+
/**
189+
* Show all the invalid properties with reasons.
190+
*
191+
* @return array invalid properties with reasons
192+
*/
193+
public function listInvalidProperties()
194+
{
195+
$invalidProperties = parent::listInvalidProperties();
196+
197+
return $invalidProperties;
198+
}
199+
200+
/**
201+
* Validate all the properties in the model
202+
* return true if all passed
203+
*
204+
* @return bool True if all properties are valid
205+
*/
206+
public function valid()
207+
{
208+
if (!parent::valid()) {
209+
return false;
210+
}
211+
212+
return true;
213+
}
214+
215+
/**
216+
* Returns true if offset exists. False otherwise.
217+
*
218+
* @param integer $offset Offset
219+
*
220+
* @return boolean
221+
*/
222+
public function offsetExists($offset)
223+
{
224+
return isset($this->container[$offset]);
225+
}
226+
227+
/**
228+
* Gets offset.
229+
*
230+
* @param integer $offset Offset
231+
*
232+
* @return mixed
233+
*/
234+
public function offsetGet($offset)
235+
{
236+
return isset($this->container[$offset]) ? $this->container[$offset] : null;
237+
}
238+
239+
/**
240+
* Sets value based on offset.
241+
*
242+
* @param integer $offset Offset
243+
* @param mixed $value Value to be set
244+
*
245+
* @return void
246+
*/
247+
public function offsetSet($offset, $value)
248+
{
249+
if (is_null($offset)) {
250+
$this->container[] = $value;
251+
} else {
252+
$this->container[$offset] = $value;
253+
}
254+
}
255+
256+
/**
257+
* Unsets offset.
258+
*
259+
* @param integer $offset Offset
260+
*
261+
* @return void
262+
*/
263+
public function offsetUnset($offset)
264+
{
265+
unset($this->container[$offset]);
266+
}
267+
268+
/**
269+
* Gets the string presentation of the object
270+
*
271+
* @return string
272+
*/
273+
public function __toString()
274+
{
275+
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
276+
return json_encode(
277+
ObjectSerializer::sanitizeForSerialization($this),
278+
JSON_PRETTY_PRINT
279+
);
280+
}
281+
282+
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
283+
}
284+
}
285+
286+

0 commit comments

Comments
 (0)