Skip to content

Commit

Permalink
20220726 update : add 4 kinds of save option and update apis.
Browse files Browse the repository at this point in the history
  • Loading branch information
roywangaspose committed Jul 26, 2022
1 parent a0f77d4 commit 282ffd1
Show file tree
Hide file tree
Showing 7 changed files with 1,628 additions and 18 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![](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)
![](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)

# PHP SDK for Spreadsheet Processing in Cloud

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

## Feature & Enhancements in Version 22.6
## Feature & Enhancements in Version 22.7

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

## Feature & Enhancements in Version 22.6.1

- fix bugs about upgrading guzzlehttp/guzzle to 7.4.0.

## Read Other Formats

Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions lib/Api/LightCellsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ public function getConfig()
* @throws \InvalidArgumentException
* @return \Aspose\Cells\Cloud\Model\FilesResult
*/
public function deleteMetadata($file, $type = 'all' ,$c)
public function deleteMetadata($file, $type = 'all' ,$check_excel_restriction = 'true')
{
$this->checkAccessToken();
list($response) = $this->deleteMetadataWithHttpInfo($file, $type);
list($response) = $this->deleteMetadataWithHttpInfo($file, $type,$check_excel_restriction );
return $response;
}

Expand Down Expand Up @@ -2235,7 +2235,7 @@ protected function postImportRequest($file,$importoption)
public function postMetadata($file, $document_properties, $check_excel_restriction = 'true')
{
$this->checkAccessToken();
list($response) = $this->postMetadataWithHttpInfo($file, $document_propertie, $check_excel_restriction );
list($response) = $this->postMetadataWithHttpInfo($file, $document_properties, $check_excel_restriction );
return $response;
}

Expand Down
286 changes: 286 additions & 0 deletions lib/Model/DocxSaveOptions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,286 @@
<?php
/**
* DocxSaveOptions
*
* PHP version 5
*
* @category Class
* @package Aspose\Cells\Cloud
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/

/*
* <summary>
* Copyright (c) 2022 Aspose.Cells Cloud
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
* </summary>
*/

/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/

namespace Aspose\Cells\Cloud\Model;
use \Aspose\Cells\Cloud\ObjectSerializer;

/**
* DocxSaveOptions Class Doc Comment
*
* @category Class
* @package Aspose\Cells\Cloud
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class DocxSaveOptions extends SaveOptions
{
const DISCRIMINATOR = null;

/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'DocxSaveOptions';

/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [

];

/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [

];

/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes + parent::swaggerTypes();
}

/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats + parent::swaggerFormats();
}

/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [

];

/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [

];

/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [

];

/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return parent::attributeMap() + self::$attributeMap;
}

/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return parent::setters() + self::$setters;
}

/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return parent::getters() + self::$getters;
}

/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}






/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
parent::__construct($data);

}

/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();

return $invalidProperties;
}

/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
if (!parent::valid()) {
return false;
}

return true;
}

/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}

/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}

/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}

/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}

/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}

return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}


Loading

0 comments on commit 282ffd1

Please sign in to comment.